|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
public class InflaterInputStream
InflaterOutputStream read data which has been compressed using the DEFLATE compression method.
Inflater,
DeflaterOutputStream| Field Summary | |
|---|---|
protected byte[] |
buf
|
(package private) static int |
BUF_SIZE
|
(package private) boolean |
closed
|
(package private) boolean |
eof
|
protected Inflater |
inf
|
protected int |
len
|
(package private) int |
nativeEndBufSize
|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
InflaterInputStream(InputStream is)
Constructs a new InflaterOutputStream on is |
|
InflaterInputStream(InputStream is,
Inflater inf)
Constructs a new InflaterOutputStream on is, using the Inflater provided in inf. |
|
InflaterInputStream(InputStream is,
Inflater inf,
int bsize)
Constructs a new InflaterOutputStream on is, using the Inflater provided in inf. |
|
| Method Summary | |
|---|---|
int |
available()
Returns 0 if this stream has been closed, 1 otherwise. |
void |
close()
Closes the stream |
protected void |
fill()
|
void |
mark(int readlimit)
Marks the current position in the stream. |
boolean |
markSupported()
Returns whether the receiver implements mark semantics. |
int |
read()
Reads a single byte of decompressed data. |
int |
read(byte[] buffer,
int off,
int nbytes)
Reads up to nbytes of decompressed data and stores it in buf starting at off. |
void |
reset()
Reset the position of the stream to the last mark position. |
long |
skip(long nbytes)
Skips up to nbytes of uncompressed data. |
| Methods inherited from class java.io.FilterInputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Inflater inf
protected byte[] buf
protected int len
boolean closed
boolean eof
static final int BUF_SIZE
int nativeEndBufSize
| Constructor Detail |
|---|
public InflaterInputStream(InputStream is)
is - The InputStream to read data from
public InflaterInputStream(InputStream is,
Inflater inf)
is - The InputStream to read data frominf - The Inflater to use for decompression
public InflaterInputStream(InputStream is,
Inflater inf,
int bsize)
is - The InputStream to read data frominf - The Inflater to use for decompressionbsize - size of the inflation buffer| Method Detail |
|---|
public int read()
throws IOException
read in class FilterInputStreamIOException - If an error occurs reading
public int read(byte[] buffer,
int off,
int nbytes)
throws IOException
read in class FilterInputStreambuffer - Buffer to store intooff - offset in buffer to store atnbytes - number of bytes to store
IOException - If an error occurs reading
protected void fill()
throws IOException
IOException
public long skip(long nbytes)
throws IOException
skip in class FilterInputStreamnbytes - Number of bytes to skip
IOException - If an error occurs skipping
public int available()
throws IOException
available in class FilterInputStreamIOException - If an error occurs
public void close()
throws IOException
close in interface Closeableclose in class FilterInputStreamIOException - If an error occurs closing the streampublic void mark(int readlimit)
mark in class FilterInputStreamreadlimit - of no use
public void reset()
throws IOException
IOException when called.
reset in class FilterInputStreamIOException - if the method is calledpublic boolean markSupported()
false.
markSupported in class FilterInputStream
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||