public class NativeDeviceChannel extends AbstractSelectableChannel implements ByteChannel, NativeSelectableChannel
| Constructor and Description |
|---|
NativeDeviceChannel(int fd) |
NativeDeviceChannel(int fd,
boolean isFile) |
NativeDeviceChannel(SelectorProvider provider,
int fd,
int ops,
boolean isFile) |
| 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(int fd,
boolean isFile)
public NativeDeviceChannel(SelectorProvider provider, int fd, int ops, boolean isFile)
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 © 2020. All rights reserved.