public class LaxGZIPInputStream extends GZIPInputStream
GZIPInputStream subclass that has a flag to accept
"edgy streams" that signal end of stream with EOFException
which seems to be rather frequentcrc, eos, GZIP_MAGICbuf, inf, lenin| Constructor and Description |
|---|
LaxGZIPInputStream(InputStream wrapped,
boolean relax) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
closeavailable, fill, mark, markSupported, reset, skippublic LaxGZIPInputStream(InputStream wrapped, boolean relax) throws IOException
wrapped - the InputStream that should be wrappedrelax - flag to enable relaxed modeIOException - when super class throws an IOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class GZIPInputStreamIOExceptionpublic int read()
throws IOException
read in class InflaterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionCopyright © 1998-2020 Apache Software Foundation. All Rights Reserved.