Package jnr.unixsocket.impl
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
-
Constructor Summary
Constructors -
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 java.nio.channels.SocketChannel
bind, connect, finishConnect, getLocalAddress, getRemoteAddress, isConnected, isConnectionPending, open, open, read, setOption, socket, validOps, writeMethods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.NetworkChannel
getOption, supportedOptions
-
Constructor Details
-
AbstractNativeSocketChannel
public AbstractNativeSocketChannel(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
-