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, def
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionDeflaterOutputShell
(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 TypeMethodDescriptionvoid
close()
Close the input stream.void
write
(int b) Overrides the underlyingDeflaterOutputStream.write(int)
implementation making it more memory efficient.Methods inherited from class java.util.zip.DeflaterOutputStream
deflate, finish, flush, write
Methods inherited from class java.io.FilterOutputStream
write
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classDeflaterOutputStream
- Throws:
IOException
-
write
Overrides the underlyingDeflaterOutputStream.write(int)
implementation making it more memory efficient.- Overrides:
write
in classDeflaterOutputStream
- Throws:
IOException
- See Also:
-