Package com.tangosol.net
Class CompressionFilter.DeflaterOutputShell
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
com.tangosol.net.CompressionFilter.DeflaterOutputShell
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- CompressionFilter
DeflaterOutputShell enforces the "end" call for the
corresponding Deflater object.
-
Field Summary
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, defFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionDeflaterOutputShell(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the input stream.voidwrite(int b) Overrides the underlyingDeflaterOutputStream.write(int)implementation making it more memory efficient.Methods inherited from class java.util.zip.DeflaterOutputStream
deflate, finish, flush, writeMethods inherited from class java.io.FilterOutputStream
writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
DeflaterOutputShell
Create a new input stream with the specified decompressor.- Parameters:
stream- the output streamdeflater- the compressor ("deflater")
-
DeflaterOutputShell
Create a new input stream with the specified decompressor and buffer size.- Parameters:
stream- the output streamdeflater- the compressor ("inflater")cbSize- the output buffer size
-
-
Method Details
-
close
Close the input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDeflaterOutputStream- Throws:
IOException
-
write
Overrides the underlyingDeflaterOutputStream.write(int)implementation making it more memory efficient.- Overrides:
writein classDeflaterOutputStream- Throws:
IOException- See Also:
-