Oracle® Coherence Java API Reference
v3.5.3

E15583-01

com.tangosol.net
Class CompressionFilter.DeflaterOutputShell

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.util.zip.DeflaterOutputStream
              extended by 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.


Field Summary
 
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, def
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CompressionFilter.DeflaterOutputShell(java.io.OutputStream stream, java.util.zip.Deflater deflater)
          Create a new input stream with the specified decompressor.
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.
 
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
 

Constructor Detail

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
Method Detail

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

Oracle® Coherence Java API Reference
v3.5.3

E15583-01

Copyright © 2000, 2010, Oracle. All rights reserved.