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

Variable Index

 o i
The MessageInput from which messages are relayed.
 o o
The MessageOutput to which messages are relayed.

Constructor Index

 o MessageCopier(MessageInput, MessageOutput)
Creates a new MessageCopier.

Method Index

 o copy()
Relays messages from i to o.
 o run()
Relays messages from i to o.

Variables

 o i
  protected MessageInput i
The MessageInput from which messages are relayed.
 o o
  protected MessageOutput o
The MessageOutput to which messages are relayed.

Constructors

 o 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

Methods

 o 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
 o 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