DatagramSocketIO
, ServerSocketIO
, SocketIO
public 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, truncate
public SocketIOBase(T socketChannel, java.lang.String mode)
socketChannel
- a Channel to wrapmode
- a raw io socket mode Stringpublic void close()
IOBase
public T getChannel()
RawIOBase
getChannel
in class RawIOBase
public boolean readable()
IOBase