anon.client
Class SocketHandler

java.lang.Object
  extended by java.util.Observable
      extended by anon.client.SocketHandler

public class SocketHandler
extends java.util.Observable

Author:
Stefan Lieske

Nested Class Summary
private  class SocketHandler.SocketInputStreamImplementation
           
private  class SocketHandler.SocketOutputStreamImplementation
           
 
Field Summary
private  java.lang.Object m_internalSynchronization
           
private  SocketHandler.SocketInputStreamImplementation m_socketInputStream
           
private  SocketHandler.SocketOutputStreamImplementation m_socketOutputStream
           
private  IStreamConnection m_underlyingConnection
           
 
Constructor Summary
SocketHandler(IStreamConnection a_baseConnection)
           
 
Method Summary
 void closeSocket()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
private  void handleEndOfInputStream()
           
private  void handleInputStreamClose()
           
private  void handleIOException(java.io.IOException a_exception)
           
private  void handleOutputStreamClose()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_underlyingConnection

private IStreamConnection m_underlyingConnection

m_socketInputStream

private SocketHandler.SocketInputStreamImplementation m_socketInputStream

m_socketOutputStream

private SocketHandler.SocketOutputStreamImplementation m_socketOutputStream

m_internalSynchronization

private java.lang.Object m_internalSynchronization
Constructor Detail

SocketHandler

public SocketHandler(IStreamConnection a_baseConnection)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

closeSocket

public void closeSocket()

getInputStream

public java.io.InputStream getInputStream()

getOutputStream

public java.io.OutputStream getOutputStream()

handleIOException

private void handleIOException(java.io.IOException a_exception)

handleEndOfInputStream

private void handleEndOfInputStream()

handleInputStreamClose

private void handleInputStreamClose()

handleOutputStreamClose

private void handleOutputStreamClose()