Skip navigation links
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
- Enclosing class:
- CompressionFilter
-
public static class CompressionFilter.DeflaterOutputShell
- extends DeflaterOutputStream
DeflaterOutputShell enforces the "end" call for the corresponding Deflater object.
CompressionFilter.DeflaterOutputShell
public CompressionFilter.DeflaterOutputShell(OutputStream stream,
Deflater deflater)
- Create a new input stream with the specified decompressor.
- Parameters:
stream - the output stream
deflater - the compressor ("deflater")
CompressionFilter.DeflaterOutputShell
public CompressionFilter.DeflaterOutputShell(OutputStream stream,
Deflater deflater,
int cbSize)
- Create a new input stream with the specified decompressor and buffer size.
- Parameters:
stream - the output stream
deflater - the compressor ("inflater")
cbSize - the output buffer size
close
public void close()
throws IOException
- Close the input stream.
-
- Specified by:
close in interface Closeable
- Overrides:
close in class DeflaterOutputStream
-
- Throws:
IOException - if an I/O error has occurred
write
public void write(int b)
throws IOException
- Overrides the underlying
DeflaterOutputStream.write(int) implementation making it more memory efficient.
-
- Overrides:
write in class DeflaterOutputStream
-
- Parameters:
b - the byte to be written
- Throws:
IOException - if an I/O error has occurred
- See Also:
- DeflaterOutputStream is memory inefficient
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.