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

Class prominence.msg.DeliveryOutputStream

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

public class DeliveryOutputStream
extends MessageOutput
A MessageOutput that immediately delivers its contents to a recipient specified in the constructor when send() is called.

The message is delivered through the Recipient interface.

See Also:
Recipient

Variable Index

 o byteO
A ByteArrayOutputStream used to buffer the message contents.
 o r
The recipient of messages sent to this stream.

Constructor Index

 o DeliveryOutputStream(Recipient)
Creates a new DeliveryOutputStream with a specified recipient.

Method Index

 o send()
Delivers the current message contents to the designated recipient.

Variables

 o byteO
  protected ByteArrayOutputStream byteO
A ByteArrayOutputStream used to buffer the message contents.
 o r
  protected Recipient r
The recipient of messages sent to this stream.

Constructors

 o DeliveryOutputStream
  public DeliveryOutputStream(Recipient r)
Creates a new DeliveryOutputStream with a specified recipient.
Parameters:
r - The recipient for messages sent to this stream.

Methods

 o send
  public void send()
Delivers the current message contents to the designated recipient.
Overrides:
send in class MessageOutput

All Packages  Class Hierarchy  This Package  Previous  Next  Index