|
||||||||||
| 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()
|
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.InputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamn - number of bytes to skip
java.io.IOExceptionpublic boolean isGzip()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||