Package io.netty5.channel.unix
Class SocketWritableByteChannel
- java.lang.Object
-
- io.netty5.channel.unix.SocketWritableByteChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
public abstract class SocketWritableByteChannel extends Object implements WritableByteChannel
-
-
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 BufferAllocatoralloc()voidclose()booleanisOpen()intwrite(ByteBuffer src)
-
-
-
Constructor Detail
-
SocketWritableByteChannel
protected SocketWritableByteChannel(FileDescriptor fd)
-
-
Method Detail
-
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 BufferAllocator alloc()
-
-