MsgDataOutputStream and MsgDataWriter
An instance of MsgDataOutputStream
or
MsgDataWriter
is used for writing message contents to
external sources as streams.
-
MsgDataOutputStream
writes data as byte streams. -
MsgDataWriter
writes data as character streams.
Abstractly, message content is a sequence of characters. When written out to external sources, they must be wrapped in a certain format (RAW, NL, EOF, LEN10).
There are two types of external sources: a Message object, or another
outputStream. These classes provide the utility function, writeData()
, to wrap message content with the necessary boundary characters
and write them into the underlying source.