public static class CompressionFilter.DeflaterOutputShell extends DeflaterOutputStream
buf, defout| 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, writewritepublic 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 Closeableclose in interface AutoCloseableclose in class DeflaterOutputStreamIOExceptionpublic void write(int b)
throws IOException
DeflaterOutputStream.write(int)
implementation making it more memory efficient.write in class DeflaterOutputStreamIOException