public abstract class SocketWritableByteChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel
| 限定符和类型 | 字段和说明 |
|---|---|
protected FileDescriptor |
fd |
| 限定符 | 构造器和说明 |
|---|---|
protected |
SocketWritableByteChannel(FileDescriptor fd) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract ByteBufAllocator |
alloc() |
void |
close() |
boolean |
isOpen() |
int |
write(java.nio.ByteBuffer src) |
protected int |
write(java.nio.ByteBuffer buf,
int pos,
int limit) |
protected final FileDescriptor fd
protected SocketWritableByteChannel(FileDescriptor fd)
protected int write(java.nio.ByteBuffer buf,
int pos,
int limit)
throws java.io.IOException
java.io.IOExceptionpublic final int write(java.nio.ByteBuffer src)
throws java.io.IOException
write 在接口中 java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic final boolean isOpen()
isOpen 在接口中 java.nio.channels.Channelpublic final void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在接口中 java.nio.channels.Channeljava.io.IOExceptionprotected abstract ByteBufAllocator alloc()