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.IOException
public final int write(java.nio.ByteBuffer src) throws java.io.IOException
write
在接口中 java.nio.channels.WritableByteChannel
java.io.IOException
public final boolean isOpen()
isOpen
在接口中 java.nio.channels.Channel
public final void close() throws java.io.IOException
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在接口中 java.nio.channels.Channel
java.io.IOException
protected abstract ByteBufAllocator alloc()