public class NativeDeviceChannel extends AbstractSelectableChannel implements ByteChannel, NativeSelectableChannel
| Constructor and Description |
|---|
NativeDeviceChannel(int fd) |
NativeDeviceChannel(SelectorProvider provider,
int fd,
int ops) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(ByteBuffer dst) |
int |
validOps() |
int |
write(ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenpublic NativeDeviceChannel(int fd)
public NativeDeviceChannel(SelectorProvider provider, 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 WritableByteChannelIOExceptionCopyright © 2015. All Rights Reserved.