public static class CompressionFilter.DeflaterOutputShell extends DeflaterOutputStream
buf, def
out
Constructor and Description |
---|
DeflaterOutputShell(OutputStream stream, Deflater deflater)
Create a new input stream with the specified decompressor.
|
DeflaterOutputShell(OutputStream stream, Deflater deflater, int cbSize)
Create a new input stream with the specified decompressor and buffer size.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the input stream.
|
void |
write(int b)
Overrides the underlying
DeflaterOutputStream.write(int) implementation making it more memory efficient. |
deflate, finish, flush, write
write
public DeflaterOutputShell(OutputStream stream, Deflater deflater)
stream
- the output streamdeflater
- the compressor ("deflater")public DeflaterOutputShell(OutputStream stream, Deflater deflater, int cbSize)
stream
- the output streamdeflater
- the compressor ("inflater")cbSize
- the output buffer sizepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DeflaterOutputStream
IOException
public void write(int b) throws IOException
DeflaterOutputStream.write(int)
implementation making it more memory efficient.write
in class DeflaterOutputStream
IOException