public abstract class SocketIOBase<T extends Channel> extends RawIOBase
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
SocketIOBase(T socketChannel,
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, write
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate
public void close()
IOBase
public T getChannel()
RawIOBase
getChannel
in class RawIOBase
public boolean readable()
IOBase