Closeable, AutoCloseableReusableGZIPInputStreampublic class ResettableGZIPInputStream extends InflaterInputStream
inbuf, inf, len| Constructor | Description |
|---|---|
ResettableGZIPInputStream() |
Build a new GZIP stream without a bound compressed stream.
|
ResettableGZIPInputStream(InputStream compressedStream) |
Warning - blocking!
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Does NOT call super.close(), as it cannot be reused if we do that.
|
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, skipreadAllBytes, readNBytes, transferTopublic ResettableGZIPInputStream()
public ResettableGZIPInputStream(InputStream compressedStream) throws IOException
IOExceptionpublic void initialize(InputStream compressedStream) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InflaterInputStreamIOExceptionpublic int read(byte[] buf)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InflaterInputStreamIOExceptionpublic long getTotalRead()
public long getTotalExpanded()
public long getRemaining()
public boolean getFinished()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InflaterInputStreamIOException