Package jnr.unixsocket.impl
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 int
getFD()
protected void
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) Methods inherited from class java.nio.channels.DatagramChannel
bind, connect, disconnect, getLocalAddress, getRemoteAddress, isConnected, open, open, read, receive, send, setOption, socket, validOps, write
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
Methods inherited from class java.nio.channels.SelectableChannel
register
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.nio.channels.MulticastChannel
close, join, join
Methods inherited from interface java.nio.channels.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:
getFD
in interfacejnr.enxio.channels.NativeSelectableChannel
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannel
in classAbstractSelectableChannel
- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlocking
in classAbstractSelectableChannel
- Throws:
IOException
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Specified by:
read
in classDatagramChannel
- Throws:
IOException
-
read
- Specified by:
read
in interfaceScatteringByteChannel
- Specified by:
read
in classDatagramChannel
- Throws:
IOException
-
write
- Specified by:
write
in interfaceWritableByteChannel
- Specified by:
write
in classDatagramChannel
- Throws:
IOException
-
write
- Specified by:
write
in interfaceGatheringByteChannel
- Specified by:
write
in classDatagramChannel
- Throws:
IOException
-