| Constructor and Description |
|---|
SocketConnector(java.net.InetAddress address,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available()
Returns true if there is currently data available for
reading.
|
protected void |
checkClosed() |
void |
close()
Closes the connection.
|
boolean |
isConnected()
Returns true if this connector is currently connected.
|
java.nio.ByteBuffer |
read()
Reads a chunk of data from the connection, blocking if
there is no data available.
|
void |
write(java.nio.ByteBuffer data)
Writes a chunk of data to the connection from data.position()
to data.limit().
|
public SocketConnector(java.net.InetAddress address,
int port)
throws java.io.IOException
java.io.IOExceptionprotected void checkClosed()
public boolean isConnected()
ConnectorisConnected in interface Connectorpublic void close()
Connectorpublic boolean available()
Connectorpublic java.nio.ByteBuffer read()
Connector