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.| 构造器和说明 |
|---|
ContentEncoderChannel(ContentEncoder contentEncoder) |
public ContentEncoderChannel(ContentEncoder contentEncoder)
public int write(java.nio.ByteBuffer src)
throws java.io.IOException
write 在接口中 java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic void close()
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在接口中 java.nio.channels.Channelpublic boolean isOpen()
isOpen 在接口中 java.nio.channels.Channel