public abstract class AbstractSocketClient extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private InputStream |
in
.
|
private OutputStream |
out
.
|
private int |
port
.
|
private Socket |
socket
.
|
| Constructor and Description |
|---|
AbstractSocketClient(int port) |
private int port
private InputStream in
private OutputStream out
public AbstractSocketClient(int port)
public final void connect() throws IOException
IOExceptionprotected abstract void handle(InputStream in, OutputStream out) throws IOException
IOExceptionpublic final void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015 eXo Platform SAS. All Rights Reserved.