org.apache.qpid.client.message
Class JMSBytesMessage
java.lang.Object
org.apache.qpid.client.message.AMQMessage
org.apache.qpid.client.message.AbstractJMSMessage
org.apache.qpid.client.message.JMSBytesMessage
- All Implemented Interfaces:
- javax.jms.BytesMessage, javax.jms.Message
public class JMSBytesMessage
- extends AbstractJMSMessage
- implements javax.jms.BytesMessage
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Methods inherited from class org.apache.qpid.client.message.AbstractJMSMessage |
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getData, getDoubleProperty, getFloatProperty, getIntProperty, getJmsContentHeaderProperties, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, getUnderlyingMessagePropertiesMap, populateHeadersFromMessageProperties, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, setUnderlyingMessagePropertiesMap, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Message |
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty |
clearBody
public void clearBody()
throws javax.jms.JMSException
- Specified by:
clearBody
in interface javax.jms.Message
- Specified by:
clearBody
in class AbstractJMSMessage
- Throws:
javax.jms.JMSException
toBodyString
public java.lang.String toBodyString()
throws javax.jms.JMSException
- Description copied from class:
AbstractJMSMessage
- Get a String representation of the body of the message. Used in the
toString() method which outputs this before message properties.
- Specified by:
toBodyString
in class AbstractJMSMessage
- Throws:
javax.jms.JMSException
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType
in class AbstractJMSMessage
getBodyLength
public long getBodyLength()
throws javax.jms.JMSException
- Specified by:
getBodyLength
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readBoolean
public boolean readBoolean()
throws javax.jms.JMSException
- Specified by:
readBoolean
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readByte
public byte readByte()
throws javax.jms.JMSException
- Specified by:
readByte
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readUnsignedByte
public int readUnsignedByte()
throws javax.jms.JMSException
- Specified by:
readUnsignedByte
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readShort
public short readShort()
throws javax.jms.JMSException
- Specified by:
readShort
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readUnsignedShort
public int readUnsignedShort()
throws javax.jms.JMSException
- Specified by:
readUnsignedShort
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readChar
public char readChar()
throws javax.jms.JMSException
- Note that this method reads a unicode character as two bytes from the stream
- Specified by:
readChar
in interface javax.jms.BytesMessage
- Returns:
- the character read from the stream
- Throws:
javax.jms.JMSException
readInt
public int readInt()
throws javax.jms.JMSException
- Specified by:
readInt
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readLong
public long readLong()
throws javax.jms.JMSException
- Specified by:
readLong
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readFloat
public float readFloat()
throws javax.jms.JMSException
- Specified by:
readFloat
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readDouble
public double readDouble()
throws javax.jms.JMSException
- Specified by:
readDouble
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readUTF
public java.lang.String readUTF()
throws javax.jms.JMSException
- Specified by:
readUTF
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readBytes
public int readBytes(byte[] bytes)
throws javax.jms.JMSException
- Specified by:
readBytes
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
readBytes
public int readBytes(byte[] bytes,
int maxLength)
throws javax.jms.JMSException
- Specified by:
readBytes
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeBoolean
public void writeBoolean(boolean b)
throws javax.jms.JMSException
- Specified by:
writeBoolean
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeByte
public void writeByte(byte b)
throws javax.jms.JMSException
- Specified by:
writeByte
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeShort
public void writeShort(short i)
throws javax.jms.JMSException
- Specified by:
writeShort
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeChar
public void writeChar(char c)
throws javax.jms.JMSException
- Specified by:
writeChar
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeInt
public void writeInt(int i)
throws javax.jms.JMSException
- Specified by:
writeInt
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeLong
public void writeLong(long l)
throws javax.jms.JMSException
- Specified by:
writeLong
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeFloat
public void writeFloat(float v)
throws javax.jms.JMSException
- Specified by:
writeFloat
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeDouble
public void writeDouble(double v)
throws javax.jms.JMSException
- Specified by:
writeDouble
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeUTF
public void writeUTF(java.lang.String string)
throws javax.jms.JMSException
- Specified by:
writeUTF
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeBytes
public void writeBytes(byte[] bytes)
throws javax.jms.JMSException
- Specified by:
writeBytes
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeBytes
public void writeBytes(byte[] bytes,
int offset,
int length)
throws javax.jms.JMSException
- Specified by:
writeBytes
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
writeObject
public void writeObject(java.lang.Object object)
throws javax.jms.JMSException
- Specified by:
writeObject
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
reset
public void reset()
throws javax.jms.JMSException
- Specified by:
reset
in interface javax.jms.BytesMessage
- Throws:
javax.jms.JMSException
isReadable
public boolean isReadable()