| Access | Constructor and Description |
|---|---|
| public | DatagramSocketIO(DatagramChannel
a DatagramChannel to wrap socketChannel, String a raw io socket mode String mode)Construct a DatagramSocketIO for the given DatagramChannel. |
| 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 long | Returns: the amount of data read as a longan array of ByteBuffers to read bytes into bufs)Overrides org. Read bytes into each of the specified ByteBuffers via scatter i/o. |
| public int | write(ByteBuffer
a ByteBuffer value buf)Overrides org. Write the given ByteBuffer to the IO stream. |
| public long | Returns: the number of bytes written as a longan array of ByteBuffers bufs)Overrides org. Writes bytes from each of the specified ByteBuffers via gather i/o. |
| DatagramSocketIO | back to summary |
|---|---|
| public DatagramSocketIO(DatagramChannel socketChannel, String mode) Construct a DatagramSocketIO for the given DatagramChannel.
| |
| 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).
| |
| readinto | back to summary |
|---|---|
| public long readinto(ByteBuffer[] bufs) Overrides org. Read bytes into each of the specified ByteBuffers via scatter i/o.
| |
| 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().
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] bufs) Overrides org. Writes bytes from each of the specified ByteBuffers via gather i/o.
| |