| Access | Constructor and Description |
|---|---|
| public | ServerSocketIO(ServerSocketChannel
a ServerSocketChannel to wrap socketChannel, String a raw io socket mode String mode)Construct a ServerSocketIO for the given ServerSocketChannel. |
| Modifier and Type | Method and Description |
|---|---|
| public int | readinto(ByteBuffer
a ByteBuffer to read bytes into buf)Overrides org. Read up to buf.remaining() bytes into buf. |
| public int | write(ByteBuffer
a ByteBuffer value buf)Overrides org. Write the given ByteBuffer to the IO stream. |
| ServerSocketIO | back to summary |
|---|---|
| public ServerSocketIO(ServerSocketChannel socketChannel, String mode) Construct a ServerSocketIO for the given ServerSocketChannel.
| |
| readinto | back to summary |
|---|---|
| public int readinto(ByteBuffer buf) Overrides org. Doc from org. Read up to buf.remaining() bytes into buf. Returns number of bytes read (0 for EOF).
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer buf) Overrides org. Doc from org. Write the given ByteBuffer to the IO stream. Returns the number of bytes written, which may be less than buf.remaining().
| |