(new GZIPOutputStream(_))
, a GZIPOutputstream, OutputStream GZIPOutputstream
, scala, GZIPOutputstream, . , , .
How to fix this depends on what you are actually trying to do. If you really want to transfer GZIPOutputstream, you need to replace this _with OutputStream.
If your intention is to methodcreate GZIPOutputstreamwith a factory function similar to the one you pass in, you want to change the declared type for z. For instance,
(z: (OutputStream) => GZIPOutputStream)
and then in the body of the method you can say something like z(y)to get GZIPOutputstream. (Or replace ywith some other output stream.)
source
share