Package org.apache.http.client.entity
Class DeflateInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.http.client.entity.DeflateInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class DeflateInputStream extends InputStream
Deflate input stream. This class includes logic needed for various Rfc's in order to reasonably implement the "deflate" compression style.
-
-
Constructor Summary
Constructors Constructor Description DeflateInputStream(InputStream wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()Get available.voidclose()Close.voidmark(int readLimit)Mark.booleanmarkSupported()Check if mark is supported.intread()Read a byte.intread(byte[] b)Read lots of bytes.intread(byte[] b, int off, int len)Read lots of specific bytes.voidreset()Reset.longskip(long n)Skip-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
DeflateInputStream
public DeflateInputStream(InputStream wrapped) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read() throws IOExceptionRead a byte.- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOExceptionRead lots of bytes.- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOExceptionRead lots of specific bytes.- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOExceptionSkip- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available() throws IOExceptionGet available.- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readLimit)
Mark.- Overrides:
markin classInputStream
-
reset
public void reset() throws IOExceptionReset.- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
Check if mark is supported.- Overrides:
markSupportedin classInputStream
-
close
public void close() throws IOExceptionClose.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-