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(java.io.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(java.io.InputStream wrapped, boolean relax) throws java.io.IOException
wrapped
- the InputStream that should be wrappedrelax
- flag to enable relaxed modejava.io.IOException
- when super class throws an IOExceptionpublic int read(byte[] b, int off, int len) throws java.io.IOException
read
in class org.apache.http.client.entity.DeflateInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class org.apache.http.client.entity.DeflateInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class org.apache.http.client.entity.DeflateInputStream
java.io.IOException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.