public class InflaterInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected static int |
DEFAULT_BUFSIZE |
protected Inflater |
inflater |
protected boolean |
myinflater |
in
Constructor and Description |
---|
InflaterInputStream(InputStream in) |
InflaterInputStream(InputStream in,
boolean nowrap) |
InflaterInputStream(InputStream in,
Inflater inflater) |
InflaterInputStream(InputStream in,
Inflater inflater,
int size) |
InflaterInputStream(InputStream in,
Inflater inflater,
int size,
boolean close_in) |
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
protected void |
fill() |
byte[] |
getAvailIn() |
Inflater |
getInflater() |
long |
getTotalIn() |
long |
getTotalOut() |
void |
mark(int readlimit)
Marks the current position in this input stream.
|
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods.
|
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes.
|
void |
readHeader() |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
|
long |
skip(long n)
Skips over and discards n bytes of data from this input stream.
|
read
protected final Inflater inflater
protected byte[] buf
protected static final int DEFAULT_BUFSIZE
protected boolean myinflater
public InflaterInputStream(InputStream in) throws IOException
IOException
public InflaterInputStream(InputStream in, boolean nowrap) throws IOException
IOException
public InflaterInputStream(InputStream in, Inflater inflater) throws IOException
IOException
public InflaterInputStream(InputStream in, Inflater inflater, int size) throws IOException
IOException
public InflaterInputStream(InputStream in, Inflater inflater, int size, boolean close_in) throws IOException
IOException
public int read() throws IOException
InputStream
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
InputStream
read
in class FilterInputStream
IOException
public int available() throws IOException
InputStream
available
in class FilterInputStream
IOException
public long skip(long n) throws IOException
InputStream
skip
in class FilterInputStream
IOException
public void close() throws IOException
InputStream
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
protected void fill() throws IOException
IOException
public boolean markSupported()
InputStream
markSupported
in class FilterInputStream
public void mark(int readlimit)
InputStream
mark
in class FilterInputStream
public void reset() throws IOException
InputStream
reset
in class FilterInputStream
IOException
public long getTotalIn()
public long getTotalOut()
public byte[] getAvailIn()
public void readHeader() throws IOException
IOException
public Inflater getInflater()