Example usage for Java javax.jms BytesMessage fields, constructors, methods, implement or subclass
The text is from its open source code.
void | acknowledge() Acknowledges all consumed messages of the session of this consumed message. |
long | getBodyLength() Gets the number of bytes of the message body when the message is in read-only mode. |
Class> | getClass() Returns the runtime class of this Object . |
String | getJMSCorrelationID() Gets the correlation ID for the message. |
String | getJMSMessageID() Gets the message ID. |
Destination | getJMSReplyTo() Gets the Destination object to which a reply to this message should be sent. |
String | getJMSType() Gets the message type identifier supplied by the client when the message was sent. |
Object | getObjectProperty(String name) Returns the value of the Java object property with the specified name. |
Enumeration | getPropertyNames() Returns an Enumeration of all the property names. |
String | getStringProperty(String name) Returns the value of the String property with the specified name. |
boolean | propertyExists(String name) Indicates whether a property value exists. |
boolean | readBoolean() Reads a boolean from the bytes message stream. |
byte | readByte() Reads a signed 8-bit value from the bytes message stream. |
int | readBytes(byte[] value) Reads a byte array from the bytes message stream. |
int | readBytes(byte[] value, int length) Reads a portion of the bytes message stream. |
int | readInt() Reads a signed 32-bit integer from the bytes message stream. |
long | readLong() Reads a signed 64-bit integer from the bytes message stream. |
String | readUTF() Reads a string that has been encoded using a modified UTF-8 format from the bytes message stream. |
void | reset() Puts the message body in read-only mode and repositions the stream of bytes to the beginning. |
void | setIntProperty(String name, int value) Sets an int property value with the specified name into the message. |
void | setJMSCorrelationID(String correlationID) Sets the correlation ID for the message. |
void | setJMSDeliveryMode(int deliveryMode) Sets the DeliveryMode value for this message. |
void | setJMSPriority(int priority) Sets the priority level for this message. |
void | setJMSReplyTo(Destination replyTo) Sets the Destination object to which a reply to this message should be sent. |
void | setJMSType(String type) Sets the message type. |
void | setObjectProperty(String name, Object value) Sets a Java object property value with the specified name into the message. |
void | setStringProperty(String name, String value) Sets a String property value with the specified name into the message. |
void | writeBoolean(boolean value) Writes a boolean to the bytes message stream as a 1-byte value. |
void | writeByte(byte value) Writes a byte to the bytes message stream as a 1-byte value. |
void | writeBytes(byte[] value) Writes a byte array to the bytes message stream. |
void | writeInt(int value) Writes an int to the bytes message stream as four bytes, high byte first. |
void | writeLong(long value) Writes a long to the bytes message stream as eight bytes, high byte first. |
void | writeUTF(String value) Writes a string to the bytes message stream using UTF-8 encoding in a machine-independent manner. |