java.util.zip
public
class
java.util.zip.GZIPInputStream
The GZIPInputStream class is used to read data stored in the GZIP format.
Summary
Constants
Fields
Public Constructors
Public Methods
|
|
|
|
|
void |
close() |
|
|
|
|
|
int |
read(byte[] buffer, int off, int nbytes) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Constants
public
static
final
int
GZIP_MAGIC
Constant Value:
35615
(0x00008b1f)
Fields
Public Constructors
public
GZIPInputStream(InputStream is)
Construct a GZIPInputStream to read from GZIP data from the underlying
stream
Parameters
is
| InputStream to read data from
|
public
GZIPInputStream(InputStream is, int size)
Construct a GZIPInputStream to read from GZIP data from the underlying
stream. Set the internal buffer size to size
Parameters
is
| InputStream to read data from |
size
| Internal read buffer size
|
Public Methods
public
void
close()
Closes this stream and any underlying streams.
public
int
read(byte[] buffer, int off, int nbytes)
Reads and decompresses GZIP data from the underlying stream into buf.
Parameters
buffer
| Buffer to receive data |
off
| Offset in buffer to store data |
nbytes
| Number of bytes to read
|
Returns
- Number of uncompressed bytes read