public class ContentEncoderChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel
WritableByteChannel that delegates to a ContentEncoder.
Attempts to close this channel are ignored, and isOpen() always
returns true.| Constructor and Description |
|---|
ContentEncoderChannel(ContentEncoder contentEncoder) |
public ContentEncoderChannel(ContentEncoder contentEncoder)
public int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channelpublic boolean isOpen()
isOpen in interface java.nio.channels.Channel