org.ijsberg.iglu.util.io
Class Forwarder

java.lang.Object
  extended by org.ijsberg.iglu.util.io.Forwarder
All Implemented Interfaces:
Receiver

public class Forwarder
extends Object
implements Receiver

Forwards received messages to a transmitter.


Constructor Summary
Forwarder(OutputStream outputStream)
           
Forwarder(Transmitter outputTransmitter)
           
 
Method Summary
 void close()
           
 void onReceive(Object message)
          Is invoked in case a message is received.
 void onTransmissionClose()
          Is invoked in case the medium stops transmitting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Forwarder

public Forwarder(Transmitter outputTransmitter)

Forwarder

public Forwarder(OutputStream outputStream)
Method Detail

onReceive

public void onReceive(Object message)
Description copied from interface: Receiver
Is invoked in case a message is received.

Specified by:
onReceive in interface Receiver

onTransmissionClose

public void onTransmissionClose()
Description copied from interface: Receiver
Is invoked in case the medium stops transmitting.

Specified by:
onTransmissionClose in interface Receiver

close

public void close()


Copyright © 2011. All Rights Reserved.