public class ResettableGZIPInputStream extends InflaterInputStream
buf, inf, lenin| Constructor and Description |
|---|
ResettableGZIPInputStream()Build a new GZIP stream without a bound compressed stream. |
ResettableGZIPInputStream(InputStream compressedStream)Warning - blocking! |
| Modifier and Type | Method and Description |
|---|---|
void | close()Does NOT call super.close(), as it cannot be reused if we do that. |
void | destroy()Calls super.close(). |
boolean | getFinished()Moved from i2ptunnel HTTPResponseOutputStream.InternalGZIPInputStream |
long | getRemaining()Moved from i2ptunnel HTTPResponseOutputStream.InternalGZIPInputStream |
long | getTotalExpanded()Moved from i2ptunnel HTTPResponseOutputStream.InternalGZIPInputStream |
long | getTotalRead()Moved from i2ptunnel HTTPResponseOutputStream.InternalGZIPInputStream |
void | initialize(InputStream compressedStream)Blocking call to initialize this stream with the data from the given
compressed stream. |
int | read() |
int | read(byte[] buf) |
int | read(byte[] buf,
int off,
int len) |
String | toString()Moved from i2ptunnel HTTPResponseOutputStream.InternalGZIPInputStream |
available, fill, mark, markSupported, reset, skippublic ResettableGZIPInputStream()
public ResettableGZIPInputStream(InputStream compressedStream) throws IOException
IOExceptionpublic void close()
throws IOExceptionclose in interface Closeableclose in interface AutoCloseableclose in class InflaterInputStreamIOExceptionpublic void destroy()
throws IOExceptionIOExceptionpublic boolean getFinished()
public long getRemaining()
public long getTotalExpanded()
public long getTotalRead()
public final void initialize(InputStream compressedStream) throws IOException
IOExceptionpublic int read()
throws IOExceptionread in class InflaterInputStreamIOExceptionpublic int read(byte[] buf)
throws IOExceptionread in class FilterInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOExceptionread in class InflaterInputStreamIOException