public class LaxDeflateInputStream
extends org.apache.http.client.entity.DeflateInputStream
DeflateInputStream
subclass that has a flag to accept
"edgy streams" that signal end of stream with EOFException
which seems to be rather frequentConstructor and Description |
---|
LaxDeflateInputStream(InputStream wrapped,
boolean relax) |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public LaxDeflateInputStream(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 org.apache.http.client.entity.DeflateInputStream
IOException
public int read() throws IOException
read
in class org.apache.http.client.entity.DeflateInputStream
IOException
public int read(byte[] b) throws IOException
read
in class org.apache.http.client.entity.DeflateInputStream
IOException
Copyright (c) 1998-2021 Apache Software Foundation. All Rights Reserved.