public abstract class SocketIOBase<T extends java.nio.channels.Channel> extends RawIOBase
DEFAULT_BUFFER_SIZE| Constructor and Description |
|---|
SocketIOBase(T socketChannel,
java.lang.String mode)
Construct a SocketIOBase for the given socket Channel
|
| Modifier and Type | Method and 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.
|
fileno, read, readall, readinto, readinto, write, writeasInputStream, 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