GZIPInputStream.read

GZIPInputStream.read

Class Overview | Class Members | This Package | All Packages

Syntax
public int read( byte buf[], int off, int len ) throws IOException
Parameters
buf
the buffer into which the data is read
off
the start offset of the data
len
the maximum number of bytes read
Returns
the actual number of bytes read, or -1 if the end of the compressed input stream is reached
Description
Reads uncompressed data into an array of bytes. Blocks until enough input is available for decompression.

Exceptions
IOException if an I/O error has occurred or the compressed input data is corrupt
Overrides
read in class InflaterInputStream