Name
InflaterInputStream
Synopsis
This class is a subclass of
java.io.FilterInputStream; it reads a specified
stream of compressed input data (typically one that was written with
DeflaterOutputStream or a subclass) and filters
that data by uncompressing (inflating) it. To create an
InflaterInputStream, specify both the input stream
to read from and an Inflater object to perform the
decompression. Once an InflaterInputStream is
created, the read( ) and skip(
) methods are the same as those of other input streams. The
InflaterInputStream uncompresses raw data.
Applications often prefer one of its subclasses,
GZIPInputStream or
ZipInputStream, that work with compressed data
written in the standard gzip and
PKZip file formats.
Figure 16-142. java.util.zip.InflaterInputStream
public class InflaterInputStream extends java.io.FilterInputStream { // Public Constructors public InflaterInputStream(java.io.InputStream in); public InflaterInputStream(java.io.InputStream in, Inflater inf); public InflaterInputStream(java.io.InputStream in, Inflater inf, int size); // Public Methods Overriding FilterInputStream 1.2 public int available( ) throws java.io.IOException; 1.2 public void close( ) throws java.io.IOException; 5.0 public void mark(int readlimit); synchronized empty 5.0 public boolean markSupported( ); constant public int read( ) throws java.io.IOException; public int read(byte[ ] b, int ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access