protected static class GzipCodec.GzipInputStream extends DecompressorStream
buffer, closed, decompressor, eof
in
Modifier | Constructor and Description |
---|---|
protected |
GzipInputStream(DecompressorStream in)
Allow subclasses to directly set the inflater stream.
|
|
GzipInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] data,
int offset,
int len)
Read bytes from the stream.
|
void |
resetState()
Reset the decompressor to its initial state and discard any buffered data,
as the underlying stream may have been repositioned.
|
long |
skip(long offset) |
checkStream, decompress, getCompressedData, mark, markSupported, reset
read
public GzipInputStream(InputStream in) throws IOException
IOException
protected GzipInputStream(DecompressorStream in)
public int available() throws IOException
available
in class DecompressorStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DecompressorStream
IOException
public int read() throws IOException
read
in class DecompressorStream
IOException
public int read(byte[] data, int offset, int len) throws IOException
CompressionInputStream
read
in class DecompressorStream
IOException
public long skip(long offset) throws IOException
skip
in class DecompressorStream
IOException
public void resetState() throws IOException
CompressionInputStream
resetState
in class DecompressorStream
IOException
Copyright © 2010 The Apache Software Foundation