CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

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:
Closeable, Flushable
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
CompressionFilter.DeflaterOutputShell(OutputStream stream, Deflater deflater)
          Create a new input stream with the specified decompressor.
CompressionFilter.DeflaterOutputShell(OutputStream stream, 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(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
Method Detail

close

public void close()
           throws IOException
Close the input stream.

Specified by:
close in interface Closeable
Overrides:
close in class DeflaterOutputStream
Throws:
IOException

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
Throws:
IOException
See Also:
DeflaterOutputStream is memory inefficient

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation