public class SocketIO extends SocketIOBase<java.nio.channels.SocketChannel>
DEFAULT_BUFFER_SIZE| Constructor | Description |
|---|---|
SocketIO(java.nio.channels.SocketChannel socketChannel,
java.lang.String mode) |
Construct a SocketIO for the given SocketChannel.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
readinto(java.nio.ByteBuffer buf) |
Read up to buf.remaining() bytes into buf.
|
long |
readinto(java.nio.ByteBuffer[] bufs) |
Read bytes into each of the specified ByteBuffers via scatter
i/o.
|
int |
write(java.nio.ByteBuffer buf) |
Write the given ByteBuffer to the IO stream.
|
long |
write(java.nio.ByteBuffer[] bufs) |
Writes bytes from each of the specified ByteBuffers via gather
i/o.
|
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getChannel, readable, writablepublic SocketIO(java.nio.channels.SocketChannel socketChannel,
java.lang.String mode)
socketChannel - a SocketChannel to wrapmode - a raw io socket mode Stringpublic int readinto(java.nio.ByteBuffer buf)
RawIOBasepublic long readinto(java.nio.ByteBuffer[] bufs)
public int write(java.nio.ByteBuffer buf)
RawIOBase