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 int
available()
Get available.void
close()
Close.void
mark(int readLimit)
Mark.boolean
markSupported()
Check if mark is supported.int
read()
Read a byte.int
read(byte[] b)
Read lots of bytes.int
read(byte[] b, int off, int len)
Read lots of specific bytes.void
reset()
Reset.long
skip(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 IOException
Read a byte.- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
Read lots of bytes.- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
Read lots of specific bytes.- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
Skip- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
Get available.- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit)
Mark.- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
Reset.- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
Check if mark is supported.- Overrides:
markSupported
in classInputStream
-
close
public void close() throws IOException
Close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-