Class AbstractNativeSocketChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.SocketChannel
jnr.unixsocket.impl.AbstractNativeSocketChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, NetworkChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel, jnr.enxio.channels.NativeSelectableChannel
- Direct Known Subclasses:
UnixSocketChannel
public abstract class AbstractNativeSocketChannel
extends SocketChannel
implements ByteChannel, jnr.enxio.channels.NativeSelectableChannel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNativeSocketChannel(int fd) AbstractNativeSocketChannel(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 SocketChannel
bind, connect, finishConnect, getLocalAddress, getRemoteAddress, isConnected, isConnectionPending, open, open, read, 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 NetworkChannel
getOption, supportedOptions
-
Field Details
-
common
-
SHUT_RD
private static final int SHUT_RD -
SHUT_WR
private static final int SHUT_WR
-
-
Constructor Details
-
AbstractNativeSocketChannel
public AbstractNativeSocketChannel(int fd) -
AbstractNativeSocketChannel
AbstractNativeSocketChannel(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 classSocketChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceScatteringByteChannel- Specified by:
readin classSocketChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceWritableByteChannel- Specified by:
writein classSocketChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceGatheringByteChannel- Specified by:
writein classSocketChannel- Throws:
IOException
-
shutdownInput
- Specified by:
shutdownInputin classSocketChannel- Throws:
IOException
-
shutdownOutput
- Specified by:
shutdownOutputin classSocketChannel- Throws:
IOException
-