cgl.hhms.hhfr
Class StreamConnectionClient

java.lang.Object
  extended bycgl.hhms.hhfr.StreamConnectionClient
All Implemented Interfaces:
StreamConnector

public class StreamConnectionClient
extends java.lang.Object
implements StreamConnector


Field Summary
protected  StreamReader receiver
           
protected  StreamWriter sender
           
protected  Streamer streamer
           
 
Constructor Summary
StreamConnectionClient(HHFRHandler _hhfrhandler, java.lang.String _url)
           
 
Method Summary
 void closeLink()
          Garbage collect resources associated with this link.
 boolean getDebug()
           
 Streamer getStreamer()
           
 void receiveData(byte[] data)
           
 void sendData(byte[] data)
          The method used to send data over a communication link
 void setLinkId(java.lang.String linkId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamer

protected Streamer streamer

sender

protected StreamWriter sender

receiver

protected StreamReader receiver
Constructor Detail

StreamConnectionClient

public StreamConnectionClient(HHFRHandler _hhfrhandler,
                              java.lang.String _url)
                       throws HHFRException
Method Detail

getDebug

public boolean getDebug()
Specified by:
getDebug in interface StreamConnector

sendData

public void sendData(byte[] data)
The method used to send data over a communication link

Specified by:
sendData in interface StreamConnector

receiveData

public void receiveData(byte[] data)
Specified by:
receiveData in interface StreamConnector

setLinkId

public void setLinkId(java.lang.String linkId)

getStreamer

public Streamer getStreamer()
Specified by:
getStreamer in interface StreamConnector

closeLink

public void closeLink()
Garbage collect resources associated with this link. Sockets need to be closed and any resources associated with communication, needs to be garbage collected

Specified by:
closeLink in interface StreamConnector