DatagramSocketIO, ServerSocketIO, SocketIOpublic abstract class SocketIOBase<T extends java.nio.channels.Channel> extends RawIOBase
DEFAULT_BUFFER_SIZE| Constructor | Description |
|---|---|
SocketIOBase(T socketChannel,
java.lang.String mode) |
Construct a SocketIOBase for the given socket Channel
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Flushes and closes the IO object.
|
T |
getChannel() |
Return the underlying Java nio Channel.
|
boolean |
readable() |
Return whether this file was opened for reading.
|
boolean |
writable() |
Return whether this file was opened for writing.
|
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncatepublic SocketIOBase(T socketChannel, java.lang.String mode)
socketChannel - a Channel to wrapmode - a raw io socket mode Stringpublic void close()
IOBasepublic T getChannel()
RawIOBasegetChannel in class RawIOBasepublic boolean readable()
IOBase