public class NativeSocketChannel extends AbstractSelectableChannel implements ByteChannel, NativeSelectableChannel
| Constructor and Description |
|---|
NativeSocketChannel(int fd) |
NativeSocketChannel(int fd,
int ops) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(ByteBuffer dst) |
void |
shutdownInput() |
void |
shutdownOutput() |
int |
validOps() |
int |
write(ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenpublic NativeSocketChannel(int fd)
public NativeSocketChannel(int fd,
int ops)
protected void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOExceptionprotected void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic final int validOps()
validOps in class SelectableChannelpublic final int getFD()
getFD in interface NativeSelectableChannelpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void shutdownInput()
throws IOException
IOExceptionpublic void shutdownOutput()
throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.