|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.tentackle.util.CompressedInputStream
public class CompressedInputStream
Stream to read compressed data from the underlying input stream.
Counterpart to CompressedOutputStream.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
CompressedInputStream(InputStream in)
Creates a new compressed input stream. The buffersize adapts dynamically to the packet size. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
boolean |
isClosed()
Returns the closed state. |
int |
read()
Reads the next uncompressed byte of data from the input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len uncompressed bytes of data from this input stream
into an array of bytes. |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompressedInputStream(InputStream in)
in - the underlying input stream| Method Detail |
|---|
public void close()
throws IOException
java.io.FilterInputStreamin.close().
close in interface Closeableclose in class FilterInputStreamIOException - if an I/O error occurs.FilterInputStream.inpublic boolean isClosed()
public int read()
throws IOException
read in class FilterInputStream-1 if the end of the
stream is reached.
IOException - if an I/O error occurs.FilterInputStream.in
public int read(byte[] b,
int off,
int len)
throws IOException
len uncompressed bytes of data from this input stream
into an array of bytes.
read in class FilterInputStreamb - the buffer into which the data is read.off - the start offset in the destination array blen - the maximum number of bytes read.
-1 if there is no more data because the end of
the stream has been reached.
IOException - if an I/O error occurs.FilterInputStream.in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||