|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.caucho.quercus.lib.zlib.GZInputStream
public class GZInputStream
Similar to GZIPInputStream but with ability to read appended gzip.
Constructor Summary | |
---|---|
GZInputStream(java.io.InputStream in)
|
|
GZInputStream(java.io.InputStream in,
int size)
|
Method Summary | |
---|---|
int |
available()
Returns 0 if gzip EOF has been reached, 1 otherwise |
void |
close()
|
boolean |
isGzip()
Returns true if stream is in gzip format. |
boolean |
markSupported()
mark() and reset() are not supported by this class. |
int |
read()
Returns the byte read, -1 if EOF |
int |
read(byte[] b)
Reads from the compressed stream and stores the resulting uncompressed data into the byte array. |
int |
read(byte[] b,
int off,
int len)
Reads from the compressed stream and stores the resulting uncompressed data into the byte array. |
long |
skip(long n)
Skips over and discards n bytes. |
Methods inherited from class java.io.InputStream |
---|
mark, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GZInputStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public GZInputStream(java.io.InputStream in, int size) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
- number of bytes to skip
java.io.IOException
public boolean isGzip()
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |