public abstract class AbstractNativeDatagramChannel extends DatagramChannel implements ByteChannel, jnr.enxio.channels.NativeSelectableChannel
Constructor and Description |
---|
AbstractNativeDatagramChannel(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) |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
bind, connect, disconnect, getLocalAddress, getRemoteAddress, isConnected, open, open, read, receive, send, 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
close, join, join
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 DatagramChannel
IOException
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read
in interface ScatteringByteChannel
read
in class DatagramChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class DatagramChannel
IOException
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class DatagramChannel
IOException
Copyright © 2020. All rights reserved.