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
Deflate input stream. This class includes logic needed for various Rfc's in order
to reasonably implement the "deflate" compression style.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet available.voidclose()Close.voidmark(int readLimit) Mark.booleanCheck 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) SkipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
DeflateInputStream
- Throws:
IOException
-
-
Method Details
-
read
Read a byte.- Specified by:
readin classInputStream- Throws:
IOException
-
read
Read lots of bytes.- Overrides:
readin classInputStream- Throws:
IOException
-
read
Read lots of specific bytes.- Overrides:
readin classInputStream- Throws:
IOException
-
skip
Skip- Overrides:
skipin classInputStream- Throws:
IOException
-
available
Get available.- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) Mark.- Overrides:
markin classInputStream
-
reset
Reset.- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()Check if mark is supported.- Overrides:
markSupportedin classInputStream
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-