org.ijsberg.iglu.util.io
Class Forwarder
java.lang.Object
org.ijsberg.iglu.util.io.Forwarder
- All Implemented Interfaces:
- Receiver
public class Forwarder
- extends Object
- implements Receiver
Forwards received messages to a transmitter.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Forwarder
public Forwarder(Transmitter outputTransmitter)
Forwarder
public Forwarder(OutputStream outputStream)
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.