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
IOException
protected abstract void handle(InputStream in, OutputStream out) throws IOException
IOException
public final void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2015 eXo Platform SAS. All Rights Reserved.