Package org.apache.http.nio
Class ContentEncoderChannel
- java.lang.Object
-
- org.apache.http.nio.ContentEncoderChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
public class ContentEncoderChannel extends Object implements WritableByteChannel
AWritableByteChannelthat delegates to aContentEncoder. Attempts to close this channel are ignored, andisOpen()always returnstrue.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ContentEncoderChannel(ContentEncoder contentEncoder)
-
-
-
Constructor Detail
-
ContentEncoderChannel
public ContentEncoderChannel(ContentEncoder contentEncoder)
-
-
Method Detail
-
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
public void close()
-
-