Class AbstractNativeDatagramChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.DatagramChannel
jnr.unixsocket.impl.AbstractNativeDatagramChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, MulticastChannel, NetworkChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel, jnr.enxio.channels.NativeSelectableChannel
- Direct Known Subclasses:
UnixDatagramChannel
public abstract class AbstractNativeDatagramChannel
extends DatagramChannel
implements ByteChannel, jnr.enxio.channels.NativeSelectableChannel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNativeDatagramChannel(int fd) AbstractNativeDatagramChannel(SelectorProvider provider, int fd) -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetFD()protected voidprotected voidimplConfigureBlocking(boolean block) intread(ByteBuffer dst) longread(ByteBuffer[] dsts, int offset, int length) voidsetFD(int fd) intwrite(ByteBuffer src) longwrite(ByteBuffer[] srcs, int offset, int length) Methods inherited from class DatagramChannel
bind, connect, disconnect, getLocalAddress, getRemoteAddress, isConnected, open, open, read, receive, send, setOption, socket, validOps, writeMethods inherited from class AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class SelectableChannel
registerMethods inherited from class AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MulticastChannel
close, join, joinMethods inherited from interface NetworkChannel
getOption, supportedOptions
-
Field Details
-
common
-
-
Constructor Details
-
AbstractNativeDatagramChannel
public AbstractNativeDatagramChannel(int fd) -
AbstractNativeDatagramChannel
AbstractNativeDatagramChannel(SelectorProvider provider, int fd)
-
-
Method Details
-
setFD
public void setFD(int fd) -
getFD
public final int getFD()- Specified by:
getFDin interfacejnr.enxio.channels.NativeSelectableChannel
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannelin classAbstractSelectableChannel- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlockingin classAbstractSelectableChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin classDatagramChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceScatteringByteChannel- Specified by:
readin classDatagramChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceWritableByteChannel- Specified by:
writein classDatagramChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceGatheringByteChannel- Specified by:
writein classDatagramChannel- Throws:
IOException
-