Class prominence.msg.RoutingOutputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class prominence.msg.RoutingOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.FilterOutputStream
                   |
                   +----java.io.DataOutputStream
                           |
                           +----prominence.msg.MessageOutput
                                   |
                                   +----prominence.msg.RoutingOutputStream

public class RoutingOutputStream
extends MessageOutput
A MessageOutput that attaches to an existing MessageOutput and attaches a routing list to the header of each message that is transmitted.

The routing list is specified with the targeted send() methods.

See Also:
RoutingInputStream

Variable Index

 o byteO
A ByteArrayOutputStream used to buffere the current message contents.
 o o
The MessageOutput to which this is attached.

Constructor Index

 o RoutingOutputStream(MessageOutput)
Creates a new RoutingOutputStream.

Method Index

 o send()
Sends the current message with a null routing list; this is usually interpreted as a broadcast.
 o send(String[])
Sends the current message with the specified routing list.

Variables

 o o
  protected MessageOutput o
The MessageOutput to which this is attached.
 o byteO
  protected ByteArrayOutputStream byteO
A ByteArrayOutputStream used to buffere the current message contents.

Constructors

 o RoutingOutputStream
  public RoutingOutputStream(MessageOutput o)
Creates a new RoutingOutputStream.
Parameters:
o - The MessageOutput to which to send messages

Methods

 o send
  public void send() throws IOException
Sends the current message with a null routing list; this is usually interpreted as a broadcast.
Throws: IOException
Occurs if there is a problem sending the message.
Overrides:
send in class MessageOutput
 o send
  public void send(String dst[]) throws IOException
Sends the current message with the specified routing list. The call is passed on as an untargeted send() to the attached stream.
Throws: IOException
Occurs if there is a problem sending the message.
Overrides:
send in class MessageOutput

All Packages  Class Hierarchy  This Package  Previous  Next  Index