Class InflateChannel
java.lang.Object
org.netpreserve.jwarc.InflateChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
A ReadableByteChannel inflating deflate-compressed content on read. Used to
uncompress HTTP payload with header
Content-Encoding: deflate.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InflateChannel
public InflateChannel(ReadableByteChannel channel, ByteBuffer buffer) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
isOpen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-