public class ServerSocketIO extends SocketIOBase<java.nio.channels.ServerSocketChannel>
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
ServerSocketIO(java.nio.channels.ServerSocketChannel socketChannel,
java.lang.String mode)
Construct a ServerSocketIO for the given ServerSocketChannel.
|
Modifier and Type | Method and Description |
---|---|
int |
readinto(java.nio.ByteBuffer buf)
Read up to buf.remaining() bytes into buf.
|
int |
write(java.nio.ByteBuffer buf)
Write the given ByteBuffer to the IO stream.
|
close, getChannel, readable, writable
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate
public ServerSocketIO(java.nio.channels.ServerSocketChannel socketChannel, java.lang.String mode)
socketChannel
- a ServerSocketChannel to wrapmode
- a raw io socket mode Stringpublic int readinto(java.nio.ByteBuffer buf)
RawIOBase
public int write(java.nio.ByteBuffer buf)
RawIOBase