public class JmsBytesMessage extends JmsMessage implements javax.jms.BytesMessage
| Modifier and Type | Field and Description |
|---|---|
protected DataInputStream |
dataIn |
protected DataOutputStream |
dataOut |
acknowledgeCallback, connection, readOnly, readOnlyBody, readOnlyProperties, validatePropertyNames| Constructor and Description |
|---|
JmsBytesMessage(JmsBytesMessageFacade facade) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody() |
JmsBytesMessage |
copy() |
protected <T> T |
doGetBody(Class<T> asType) |
boolean |
equals(Object other) |
long |
getBodyLength() |
int |
hashCode() |
boolean |
isBodyAssignableTo(Class target) |
void |
onSend(long producerTtl)
Used to trigger processing required to place the message in a state where it is
ready to be written to the wire.
|
boolean |
readBoolean() |
byte |
readByte() |
int |
readBytes(byte[] value) |
int |
readBytes(byte[] value,
int length) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
String |
toString() |
void |
writeBoolean(boolean value) |
void |
writeByte(byte value) |
void |
writeBytes(byte[] value) |
void |
writeBytes(byte[] value,
int offset,
int length) |
void |
writeChar(char value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeObject(Object value) |
void |
writeShort(short value) |
void |
writeUTF(String value) |
acknowledge, checkReadOnly, checkReadOnlyBody, checkReadOnlyProperties, checkWriteOnlyBody, clearProperties, copy, getAcknowledgeCallback, getAllPropertyNames, getBody, getBooleanProperty, getByteProperty, getConnection, getDoubleProperty, getFacade, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isExpired, isReadOnly, isReadOnlyBody, isReadOnlyProperties, isValidatePropertyNames, onDispatch, onSendComplete, propertyExists, setAcknowledgeCallback, setBooleanProperty, setByteProperty, setConnection, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnly, setReadOnlyBody, setReadOnlyProperties, setShortProperty, setStringProperty, setValidatePropertyNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitacknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertyprotected transient DataOutputStream dataOut
protected transient DataInputStream dataIn
public JmsBytesMessage(JmsBytesMessageFacade facade)
public JmsBytesMessage copy() throws javax.jms.JMSException
copy in class JmsMessagejavax.jms.JMSExceptionpublic boolean equals(Object other)
equals in class JmsMessagepublic int hashCode()
hashCode in class JmsMessagepublic void clearBody()
throws javax.jms.JMSException
clearBody in interface javax.jms.MessageclearBody in class JmsMessagejavax.jms.JMSExceptionpublic long getBodyLength()
throws javax.jms.JMSException
getBodyLength in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic boolean readBoolean()
throws javax.jms.JMSException
readBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic byte readByte()
throws javax.jms.JMSException
readByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readUnsignedByte()
throws javax.jms.JMSException
readUnsignedByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic short readShort()
throws javax.jms.JMSException
readShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readUnsignedShort()
throws javax.jms.JMSException
readUnsignedShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic char readChar()
throws javax.jms.JMSException
readChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readInt()
throws javax.jms.JMSException
readInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic long readLong()
throws javax.jms.JMSException
readLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic float readFloat()
throws javax.jms.JMSException
readFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic double readDouble()
throws javax.jms.JMSException
readDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic String readUTF() throws javax.jms.JMSException
readUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readBytes(byte[] value)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic int readBytes(byte[] value,
int length)
throws javax.jms.JMSException
readBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBoolean(boolean value)
throws javax.jms.JMSException
writeBoolean in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeByte(byte value)
throws javax.jms.JMSException
writeByte in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeShort(short value)
throws javax.jms.JMSException
writeShort in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeChar(char value)
throws javax.jms.JMSException
writeChar in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeInt(int value)
throws javax.jms.JMSException
writeInt in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeLong(long value)
throws javax.jms.JMSException
writeLong in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeFloat(float value)
throws javax.jms.JMSException
writeFloat in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeDouble(double value)
throws javax.jms.JMSException
writeDouble in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeUTF(String value) throws javax.jms.JMSException
writeUTF in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] value)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeBytes(byte[] value,
int offset,
int length)
throws javax.jms.JMSException
writeBytes in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void writeObject(Object value) throws javax.jms.JMSException
writeObject in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void reset()
throws javax.jms.JMSException
reset in interface javax.jms.BytesMessagejavax.jms.JMSExceptionpublic void onSend(long producerTtl)
throws javax.jms.JMSException
JmsMessageonSend in class JmsMessageproducerTtl - the time to live value that the producer was configured with at send time.javax.jms.JMSException - if an error occurs while preparing the message for send.public String toString()
toString in class JmsMessagepublic boolean isBodyAssignableTo(Class target) throws javax.jms.JMSException
isBodyAssignableTo in interface javax.jms.MessageisBodyAssignableTo in class JmsMessagejavax.jms.JMSExceptionprotected <T> T doGetBody(Class<T> asType) throws javax.jms.JMSException
doGetBody in class JmsMessagejavax.jms.JMSExceptionCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.