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 void
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 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 IOException
Close the input stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classDeflaterOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
Overrides the underlyingDeflaterOutputStream.write(int)
implementation making it more memory efficient.- Overrides:
write
in classDeflaterOutputStream
- Throws:
IOException
- See Also:
- DeflaterOutputStream is memory inefficient
-
-