jfreerails.util
Class CompressedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
jfreerails.util.CompressedInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class CompressedInputStream
- extends java.io.FilterInputStream
A FilterInputStream for reading compressed data from a network connection.
- Author:
- Patrice Espie Licensing: LGPL
- See Also:
CompressedOutputStream
| Fields inherited from class java.io.FilterInputStream |
in |
| Methods inherited from class java.io.FilterInputStream |
close, mark, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
private byte[] buffer
compBuffer
private byte[] compBuffer
readIndex
private int readIndex
maxReadIndex
private int maxReadIndex
inflater
private java.util.zip.Inflater inflater
CompressedInputStream
public CompressedInputStream(java.io.InputStream in)
markSupported
public boolean markSupported()
- Overrides:
markSupported in class java.io.FilterInputStream
available
public int available()
throws java.io.IOException
- Overrides:
available in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Overrides:
read in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read in class java.io.FilterInputStream
- Throws:
java.io.IOException
readNextBuffer
private boolean readNextBuffer()
throws java.io.IOException
- Throws:
java.io.IOException