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
public static class CompressionFilter.DeflaterOutputShell extends DeflaterOutputStream
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
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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, write
-
Methods inherited from class java.io.FilterOutputStream
write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
DeflaterOutputShell
public DeflaterOutputShell(OutputStream stream, Deflater deflater)
Create a new input stream with the specified decompressor.- Parameters:
stream- the output streamdeflater- the compressor ("deflater")
-
DeflaterOutputShell
public DeflaterOutputShell(OutputStream stream, Deflater deflater, int cbSize)
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 Detail
-
close
public void close() throws IOExceptionClose the input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDeflaterOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOExceptionOverrides the underlyingDeflaterOutputStream.write(int)implementation making it more memory efficient.- Overrides:
writein classDeflaterOutputStream- Throws:
IOException- See Also:
- DeflaterOutputStream is memory inefficient
-
-