public class MessagePlain extends Message
Message.MessageType
bufferHeader, bufferPayload, bufferPrologue, msgFlag, sourceIPPort, timeStamp, type
Constructor and Description |
---|
MessagePlain()
Creates an empty message to be populated using the
"fromInputStream" instance method.
|
MessagePlain(IPPort srcIPP,
byte[] buf)
Create a plain message based on the passed buffer.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
fromInputStream(java.io.InputStream is,
int size)
Populates a plan message reading data (after the prologue) from an input stream.
|
protected void |
toOutputStream(java.io.OutputStream os)
It writes the "MessageXXX" instance to the specified stream.
|
computePrologue, fromInputStream, getBufferHeader, getBufferPayload, getBufferPrologue, getSourceIPPort, getTimeStamp, getType
public MessagePlain()
public MessagePlain(IPPort srcIPP, byte[] buf)
buf
- message contentprotected boolean fromInputStream(java.io.InputStream is, int size) throws java.io.IOException
fromInputStream
in class Message
java.io.IOException
protected void toOutputStream(java.io.OutputStream os) throws java.io.IOException
Message
toOutputStream
in class Message
java.io.IOException