Class prominence.msg.MessageCopier
All Packages Class Hierarchy This Package Previous Next Index
Class prominence.msg.MessageCopier
java.lang.Object
|
+----java.lang.Thread
|
+----prominence.msg.MessageCopier
- public class MessageCopier
- extends Thread
A Thread that relays messages from a MessageInput
to a MessageOutput.
- See Also:
- MessageInput, MessageOutput
-
i
-
The MessageInput from which messages are relayed.
-
o
-
The MessageOutput to which messages are relayed.
-
MessageCopier(MessageInput, MessageOutput)
- Creates a new MessageCopier.
-
copy()
- Relays messages from i to o.
-
run()
- Relays messages from i to o.
i
protected MessageInput i
- The MessageInput from which messages are relayed.
o
protected MessageOutput o
- The MessageOutput to which messages are relayed.
MessageCopier
public MessageCopier(MessageInput i,
MessageOutput o)
- Creates a new MessageCopier.
- Parameters:
- i - The MessageInput from which to relay messages
- o - The MessageOutput to which to relay messages
run
public void run()
- Relays messages from i to o.
This method is called when the superclass start() method
is called.
- Overrides:
- run in class Thread
- See Also:
- start
copy
protected void copy() throws IOException
- Relays messages from i to o.
- Throws: IOException
- Occurs if there is a problem reading or writing
a message.
All Packages Class Hierarchy This Package Previous Next Index