org.crsh.util
Class AbstractSocketClient
java.lang.Object
org.crsh.util.AbstractSocketClient
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- RemoteClient
public abstract class AbstractSocketClient
- extends Object
- implements Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
port
private int port
- .
socket
private Socket socket
- .
in
private InputStream in
- .
out
private OutputStream out
- .
AbstractSocketClient
public AbstractSocketClient(int port)
connect
public final void connect()
throws IOException
- Throws:
IOException
handle
protected abstract void handle(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
close
public final void close()
- Specified by:
close
in interface Closeable
Copyright © 2014 eXo Platform SAS. All Rights Reserved.