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, write
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
register
begin, close, end, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOption, supportedOptions
public void setFD(int fd)
public final int getFD()
getFD
in interface jnr.enxio.channels.NativeSelectableChannel
protected void implCloseSelectableChannel() throws IOException
implCloseSelectableChannel
in class AbstractSelectableChannel
IOException
protected void implConfigureBlocking(boolean block) throws IOException
implConfigureBlocking
in class AbstractSelectableChannel
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
read
in class SocketChannel
IOException
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read
in interface ScatteringByteChannel
read
in class SocketChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class SocketChannel
IOException
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class SocketChannel
IOException
public SocketChannel shutdownInput() throws IOException
shutdownInput
in class SocketChannel
IOException
public SocketChannel shutdownOutput() throws IOException
shutdownOutput
in class SocketChannel
IOException
Copyright © 2020. All rights reserved.