org.sourceforge.jemm.comm.connection.socket
Class SocketConnection
java.lang.Object
org.sourceforge.jemm.comm.connection.socket.SocketConnection
- All Implemented Interfaces:
- Connection
public class SocketConnection
- extends java.lang.Object
- implements Connection
Constructor Summary |
SocketConnection(java.net.Socket socket,
java.io.InputStream is,
java.io.OutputStream os,
java.lang.String hostname,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketConnection
public SocketConnection(java.net.Socket socket,
java.io.InputStream is,
java.io.OutputStream os,
java.lang.String hostname,
int port)
close
public void close()
throws ConnectionException
- Specified by:
close
in interface Connection
- Throws:
ConnectionException
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in interface Connection
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface Connection
getConnectionName
public java.lang.String getConnectionName()
- Specified by:
getConnectionName
in interface Connection
Copyright © 2009. All Rights Reserved.