All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class connection.MessageWriter

java.lang.Object
   |
   +----connection.MessageWriter

public class MessageWriter
extends Object
MessageWriter is a class for writing Message objects to the given output stream.

Version:
0.30, 1998/04/01
Author:
FRED development team, Antti Viljamaa
See Also:
Message

Variable Index

 o outputStream
The output stream.

Constructor Index

 o MessageWriter(OutputStream)
Constructs a new message writer for the given stream.

Method Index

 o getOutputStream()
Gets the output stream.
 o setOutputStream(OutputStream)
Sets the output stream.
 o writeMessage(Message)
Writes the given message to the stream.

Variables

 o outputStream
 OutputStream outputStream
The output stream.

Constructors

 o MessageWriter
 public MessageWriter(OutputStream outputStream)
Constructs a new message writer for the given stream.

Methods

 o writeMessage
 public void writeMessage(Message msg) throws IOException
Writes the given message to the stream.

 o setOutputStream
 protected void setOutputStream(OutputStream os)
Sets the output stream.

 o getOutputStream
 protected OutputStream getOutputStream()
Gets the output stream.


All Packages  Class Hierarchy  This Package  Previous  Next  Index