Save This Page
Home » openjdk-7 » java » util » zip » [javadoc | source]
java.util.zip
public class: InflaterOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.FilterOutputStream
         java.util.zip.InflaterOutputStream

All Implemented Interfaces:
    Flushable, Closeable

Implements an output stream filter for uncompressing data stored in the "deflate" compression format.
Field Summary
protected final  Inflater inf    Decompressor for this stream. 
protected final  byte[] buf    Output buffer for writing uncompressed data. 
Fields inherited from java.io.FilterOutputStream:
out
Constructor:
 public InflaterOutputStream(OutputStream out) 
    Creates a new output stream with a default decompressor and buffer size.
    Parameters:
    out - output stream to write the uncompressed data to
    Throws:
    NullPointerException - if {@code out} is null
 public InflaterOutputStream(OutputStream out,
    Inflater infl) 
    Creates a new output stream with the specified decompressor and a default buffer size.
    Parameters:
    out - output stream to write the uncompressed data to
    infl - decompressor ("inflater") for this stream
    Throws:
    NullPointerException - if {@code out} or {@code infl} is null
 public InflaterOutputStream(OutputStream out,
    Inflater infl,
    int bufLen) 
    Creates a new output stream with the specified decompressor and buffer size.
    Parameters:
    out - output stream to write the uncompressed data to
    infl - decompressor ("inflater") for this stream
    bufLen - decompression buffer size
    Throws:
    IllegalArgumentException - if {@code bufLen} is <= 0
    NullPointerException - if {@code out} or {@code infl} is null
Method from java.util.zip.InflaterOutputStream Summary:
close,   finish,   flush,   write,   write
Methods from java.io.FilterOutputStream:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.zip.InflaterOutputStream Detail:
 public  void close() throws IOException 
    Writes any remaining uncompressed data to the output stream and closes the underlying output stream.
 public  void finish() throws IOException 
    Finishes writing uncompressed data to the output stream without closing the underlying stream. Use this method when applying multiple filters in succession to the same output stream.
 public  void flush() throws IOException 
    Flushes this output stream, forcing any pending buffered output bytes to be written.
 public  void write(int b) throws IOException 
    Writes a byte to the uncompressed output stream.
 public  void write(byte[] b,
    int off,
    int len) throws IOException 
    Writes an array of bytes to the uncompressed output stream.