public class MessageId extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object object) |
long | getMessageId() |
int | hashCode() |
void | readBytes(InputStream in)Read the message ID from a stream. |
void | setMessageId(long id)Set the message ID. |
String | toString() |
void | writeBytes(OutputStream out)Write the message ID to a stream. |
public MessageId()
public MessageId(long id)
id - the message IDpublic long getMessageId()
public void readBytes(InputStream in) throws DataFormatException, IOException
in - the input stream to read fromDataFormatException - if the data is invalidIOException - if there is an error readingpublic void setMessageId(long id)
id - the message IDpublic void writeBytes(OutputStream out) throws DataFormatException, IOException
out - the output stream to write toDataFormatException - if the message ID is invalidIOException - if there is an error writing