public class MessageSyncTime extends Message
Message.MessageType
Modifier and Type | Field and Description |
---|---|
private long |
enclosedTime |
bufferHeader, bufferPayload, bufferPrologue, msgFlag, sourceIPPort, timeStamp, type
Constructor and Description |
---|
MessageSyncTime()
Creates an empty message to be populated using the
"fromInputStream" method.
|
MessageSyncTime(IPPort srcIPP,
byte[] buf)
Create a time message based on the passed buffer.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
fromInputStream(java.io.InputStream is,
int size)
Populates a time message reading data from an input stream.
|
long |
getEnclosedTime()
Get the time mark enclosed into the message.
|
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 MessageSyncTime()
public MessageSyncTime(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
public long getEnclosedTime()
protected void toOutputStream(java.io.OutputStream os) throws java.io.IOException
Message
toOutputStream
in class Message
java.io.IOException