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
-
byteO
- A ByteArrayOutputStream used to buffer the message contents.
-
r
- The recipient of messages sent to this stream.
-
DeliveryOutputStream(Recipient)
- Creates a new DeliveryOutputStream with a specified recipient.
-
send()
- Delivers the current message contents to the designated recipient.
byteO
protected ByteArrayOutputStream byteO
- A ByteArrayOutputStream used to buffer the message contents.
r
protected Recipient r
- The recipient of messages sent to this stream.
DeliveryOutputStream
public DeliveryOutputStream(Recipient r)
- Creates a new DeliveryOutputStream with a specified recipient.
- Parameters:
- r - The recipient for messages sent to this stream.
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