MsgDataInputStream and MsgDataReader
An instance of MsgDataInputStream
or
MsgDataReader
is used for reading message contents
from external sources as streams.
-
MsgDataInputStream
reads data as byte streams. -
MsgDataReader
reads data as character streams.
Abstractly, message content is a sequence of bytes or characters. When reading from external sources, they are bounded by one of these formats: RAW, NL (newline), EOF (end of file), LEN10 (length encoded).
There are two types of external sources: a Message object, or another
InputStream. These classes provide the utility function,
readData()
, to extract message content from the underlying source using the
specified formats.