public abstract class SocketWritableByteChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel
Modifier and Type | Field and Description |
---|---|
private FileDescriptor |
fd |
Modifier | Constructor and Description |
---|---|
protected |
SocketWritableByteChannel(FileDescriptor fd) |
Modifier and Type | Method and Description |
---|---|
protected abstract ByteBufAllocator |
alloc() |
void |
close() |
boolean |
isOpen() |
int |
write(java.nio.ByteBuffer src) |
private final FileDescriptor fd
protected SocketWritableByteChannel(FileDescriptor fd)
public final int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public final boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public final void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
protected abstract ByteBufAllocator alloc()