public abstract class AbstractNativeSocketChannel extends SocketChannel implements ByteChannel, jnr.enxio.channels.NativeSelectableChannel
| Constructor and Description |
|---|
AbstractNativeSocketChannel(int fd) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(ByteBuffer dst) |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
void |
setFD(int fd) |
SocketChannel |
shutdownInput() |
SocketChannel |
shutdownOutput() |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
bind, connect, finishConnect, getLocalAddress, getRemoteAddress, isConnected, isConnectionPending, open, open, read, setOption, socket, validOps, writeblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOption, supportedOptionspublic void setFD(int fd)
public final int getFD()
getFD in interface jnr.enxio.channels.NativeSelectableChannelprotected void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOExceptionprotected void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class SocketChannelIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class SocketChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class SocketChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class SocketChannelIOExceptionpublic SocketChannel shutdownInput() throws IOException
shutdownInput in class SocketChannelIOExceptionpublic SocketChannel shutdownOutput() throws IOException
shutdownOutput in class SocketChannelIOExceptionCopyright © 2019. All rights reserved.