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.WritableByteChanneljava.io.IOExceptionpublic final boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionprotected abstract ByteBufAllocator alloc()