Package io.netty.channel.unix
Class SocketWritableByteChannel
- java.lang.Object
-
- io.netty.channel.unix.SocketWritableByteChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
public abstract class SocketWritableByteChannel extends Object implements WritableByteChannel
-
-
Field Summary
Fields Modifier and Type Field Description protected FileDescriptorfd
-
Constructor Summary
Constructors Modifier Constructor Description protectedSocketWritableByteChannel(FileDescriptor fd)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract io.netty.buffer.ByteBufAllocatoralloc()voidclose()booleanisOpen()intwrite(ByteBuffer src)protected intwrite(ByteBuffer buf, int pos, int limit)
-
-
-
Field Detail
-
fd
protected final FileDescriptor fd
-
-
Constructor Detail
-
SocketWritableByteChannel
protected SocketWritableByteChannel(FileDescriptor fd)
-
-
Method Detail
-
write
protected int write(ByteBuffer buf, int pos, int limit) throws IOException
- Throws:
IOException
-
write
public final int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
public final void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
alloc
protected abstract io.netty.buffer.ByteBufAllocator alloc()
-
-