Package org.apache.http.nio
Class ContentDecoderChannel
- java.lang.Object
-
- org.apache.http.nio.ContentDecoderChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
public class ContentDecoderChannel extends Object implements ReadableByteChannel
AReadableByteChannelthat delegates to aContentDecoder. Attempts to close this channel are ignored, andisOpen()always returnstrue.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ContentDecoderChannel(ContentDecoder decoder)
-
-
-
Constructor Detail
-
ContentDecoderChannel
public ContentDecoderChannel(ContentDecoder decoder)
-
-
Method Detail
-
read
public int read(ByteBuffer dst) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
close
public void close()
-
-