public class NativeDeviceChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.ByteChannel, NativeSelectableChannel
Constructor and Description |
---|
NativeDeviceChannel(int fd) |
NativeDeviceChannel(java.nio.channels.spi.SelectorProvider provider,
int fd,
int ops) |
Modifier and Type | Method and Description |
---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(java.nio.ByteBuffer dst) |
int |
validOps() |
int |
write(java.nio.ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
begin, close, end, isOpen
public NativeDeviceChannel(int fd)
public NativeDeviceChannel(java.nio.channels.spi.SelectorProvider provider, int fd, int ops)
protected void implCloseSelectableChannel() throws java.io.IOException
implCloseSelectableChannel
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException
protected void implConfigureBlocking(boolean block) throws java.io.IOException
implConfigureBlocking
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException
public final int validOps()
validOps
in class java.nio.channels.SelectableChannel
public final int getFD()
getFD
in interface NativeSelectableChannel
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException