Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-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:
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 - 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

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.