|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.ra.JBMMessage
org.jboss.messaging.ra.JBMBytesMessage
public class JBMBytesMessage
A wrapper for a message
Field Summary |
---|
Fields inherited from class org.jboss.messaging.ra.JBMMessage |
---|
message, session |
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
---|---|
JBMBytesMessage(javax.jms.BytesMessage message,
JBMSession session)
Create a new wrapper |
Method Summary | |
---|---|
long |
getBodyLength()
Get body length |
boolean |
readBoolean()
Read |
byte |
readByte()
Read |
int |
readBytes(byte[] value)
Read |
int |
readBytes(byte[] value,
int length)
Read |
char |
readChar()
Read |
double |
readDouble()
Read |
float |
readFloat()
Read |
int |
readInt()
Read |
long |
readLong()
Read |
short |
readShort()
Read |
int |
readUnsignedByte()
Read |
int |
readUnsignedShort()
Read |
java.lang.String |
readUTF()
Read |
void |
reset()
Reset |
void |
writeBoolean(boolean value)
Write |
void |
writeByte(byte value)
Write |
void |
writeBytes(byte[] value)
Write |
void |
writeBytes(byte[] value,
int offset,
int length)
Write |
void |
writeChar(char value)
Write |
void |
writeDouble(double value)
Write |
void |
writeFloat(float value)
Write |
void |
writeInt(int value)
Write |
void |
writeLong(long value)
Write |
void |
writeObject(java.lang.Object value)
Write |
void |
writeShort(short value)
Write |
void |
writeUTF(java.lang.String value)
Write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Message |
---|
acknowledge, clearBody, 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 |
Constructor Detail |
---|
public JBMBytesMessage(javax.jms.BytesMessage message, JBMSession session)
message
- the messagesession
- the sessionMethod Detail |
---|
public long getBodyLength() throws javax.jms.JMSException
getBodyLength
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic boolean readBoolean() throws javax.jms.JMSException
readBoolean
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic byte readByte() throws javax.jms.JMSException
readByte
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic int readBytes(byte[] value, int length) throws javax.jms.JMSException
readBytes
in interface javax.jms.BytesMessage
value
- The valuelength
- The length
javax.jms.JMSException
- Thrown if an error occurspublic int readBytes(byte[] value) throws javax.jms.JMSException
readBytes
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic char readChar() throws javax.jms.JMSException
readChar
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic double readDouble() throws javax.jms.JMSException
readDouble
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic float readFloat() throws javax.jms.JMSException
readFloat
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic int readInt() throws javax.jms.JMSException
readInt
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic long readLong() throws javax.jms.JMSException
readLong
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic short readShort() throws javax.jms.JMSException
readShort
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic int readUnsignedByte() throws javax.jms.JMSException
readUnsignedByte
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic int readUnsignedShort() throws javax.jms.JMSException
readUnsignedShort
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.String readUTF() throws javax.jms.JMSException
readUTF
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic void reset() throws javax.jms.JMSException
reset
in interface javax.jms.BytesMessage
javax.jms.JMSException
- Thrown if an error occurspublic void writeBoolean(boolean value) throws javax.jms.JMSException
writeBoolean
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeByte(byte value) throws javax.jms.JMSException
writeByte
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeBytes(byte[] value, int offset, int length) throws javax.jms.JMSException
writeBytes
in interface javax.jms.BytesMessage
value
- The valueoffset
- The offsetlength
- The length
javax.jms.JMSException
- Thrown if an error occurspublic void writeBytes(byte[] value) throws javax.jms.JMSException
writeBytes
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeChar(char value) throws javax.jms.JMSException
writeChar
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeDouble(double value) throws javax.jms.JMSException
writeDouble
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeFloat(float value) throws javax.jms.JMSException
writeFloat
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeInt(int value) throws javax.jms.JMSException
writeInt
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeLong(long value) throws javax.jms.JMSException
writeLong
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeObject(java.lang.Object value) throws javax.jms.JMSException
writeObject
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeShort(short value) throws javax.jms.JMSException
writeShort
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void writeUTF(java.lang.String value) throws javax.jms.JMSException
writeUTF
in interface javax.jms.BytesMessage
value
- The value
javax.jms.JMSException
- Thrown if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |