org.sourceforge.jemm.comm.connection.socket
Class SocketConnection

java.lang.Object
  extended by 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)
           
 
Method Summary
 void close()
           
 java.lang.String getConnectionName()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnection

public SocketConnection(java.net.Socket socket,
                        java.io.InputStream is,
                        java.io.OutputStream os,
                        java.lang.String hostname,
                        int port)
Method Detail

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.