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:
- java.io.Closeable, java.io.Flushable
- Enclosing class:
- CompressionFilter
-
public static class CompressionFilter.DeflaterOutputShell
- extends java.util.zip.DeflaterOutputStream
DeflaterOutputShell enforces the "end" call for the corresponding Deflater object.
| Fields inherited from class java.util.zip.DeflaterOutputStream |
buf, def |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Method Summary |
void |
close()
Close the input stream. |
void |
write(int b)
Overrides the underlying DeflaterOutputStream.write(int) implementation making it more memory efficient. |
| Methods inherited from class java.util.zip.DeflaterOutputStream |
deflate, finish, write |
| Methods inherited from class java.io.FilterOutputStream |
flush, write |
CompressionFilter.DeflaterOutputShell
public CompressionFilter.DeflaterOutputShell(java.io.OutputStream stream,
java.util.zip.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(java.io.OutputStream stream,
java.util.zip.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 java.io.IOException
- Close the input stream.
-
- Specified by:
close in interface java.io.Closeable
- Overrides:
close in class java.util.zip.DeflaterOutputStream
-
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Overrides the underlying
DeflaterOutputStream.write(int) implementation making it more memory efficient.
-
- Overrides:
write in class java.util.zip.DeflaterOutputStream
-
- Throws:
java.io.IOException
- See Also:
- DeflaterOutputStream is memory inefficient
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.