| Modifier and Type | Field and Description |
|---|---|
| private boolean | readable
true if the socket is allowed to be read from |
| protected T | socketChannel
The underlying socket |
| private boolean | writable
true if the socket is allowed to be written to |
| Access | Constructor and Description |
|---|---|
| public | SocketIOBase(T
a Channel to wrap socketChannel, String a raw io socket mode String mode)Construct a SocketIOBase for the given socket Channel |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public T | getChannel()
Implements abstract org. Return the underlying Java nio Channel. |
| protected void | |
| public boolean | readable()
Overrides org. Return whether this file was opened for reading. |
| public boolean | writable()
Overrides org. Return whether this file was opened for writing. |
| readable | back to summary |
|---|---|
| private boolean readable true if the socket is allowed to be read from | |
| socketChannel | back to summary |
|---|---|
| protected T socketChannel The underlying socket | |
| writable | back to summary |
|---|---|
| private boolean writable true if the socket is allowed to be written to | |
| SocketIOBase | back to summary |
|---|---|
| public SocketIOBase(T socketChannel, String mode) Construct a SocketIOBase for the given socket Channel
| |
| close | back to summary |
|---|---|
| public void close() Overrides org. Doc from org. Flushes and closes the IO object. This must be idempotent. It should also set a flag for the 'closed' property (see below) to test.
| |
| getChannel | back to summary |
|---|---|
| public T getChannel() Implements abstract org. Doc from org. Return the underlying Java nio Channel.
| |
| parseMode | back to summary |
|---|---|
| protected void parseMode(String mode) Parse the raw io socket mode string. The mode can be 'r', 'w' or 'rw' for reading, writing or reading and writing.
| |
| readable | back to summary |
|---|---|
| public boolean readable() Overrides org. Doc from org. Return whether this file was opened for reading.
| |
| writable | back to summary |
|---|---|
| public boolean writable() Overrides org. Doc from org. Return whether this file was opened for writing.
| |