|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.joram.client.jms.Message
org.objectweb.joram.client.jms.StreamMessage
Implements the javax.jms.StreamMessage interface.
| Field Summary |
| Fields inherited from class org.objectweb.joram.client.jms.Message |
momMsg, sess |
| Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
| Method Summary | |
void |
clearBody()
API method. |
protected void |
prepare()
Method actually preparing the message for sending by transfering the local body into the wrapped MOM message. |
boolean |
readBoolean()
API method. |
byte |
readByte()
API method. |
int |
readBytes(byte[] bytes)
API method. |
char |
readChar()
API method. |
double |
readDouble()
API method. |
float |
readFloat()
API method. |
int |
readInt()
API method. |
long |
readLong()
API method. |
java.lang.Object |
readObject()
API method. |
short |
readShort()
API method. |
java.lang.String |
readString()
API method. |
void |
reset()
API method. |
void |
writeBoolean(boolean value)
API method. |
void |
writeByte(byte value)
API method. |
void |
writeBytes(byte[] value)
API method. |
void |
writeBytes(byte[] value,
int offset,
int length)
API method. |
void |
writeChar(char value)
API method. |
void |
writeDouble(double value)
API method. |
void |
writeFloat(float value)
API method. |
void |
writeInt(int value)
API method. |
void |
writeLong(long value)
API method. |
void |
writeObject(java.lang.Object value)
API method. |
void |
writeShort(short value)
API method. |
void |
writeString(java.lang.String value)
API method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
| Method Detail |
public void clearBody()
throws javax.jms.JMSException
clearBody in interface javax.jms.MessageclearBody in class Messagejavax.jms.JMSException - In case of an error while closing the input or
output streams.
public void writeBoolean(boolean value)
throws javax.jms.JMSException
writeBoolean in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeByte(byte value)
throws javax.jms.JMSException
writeByte in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeBytes(byte[] value)
throws javax.jms.JMSException
writeBytes in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeBytes(byte[] value,
int offset,
int length)
throws javax.jms.JMSException
writeBytes in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeChar(char value)
throws javax.jms.JMSException
writeChar in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeDouble(double value)
throws javax.jms.JMSException
writeDouble in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeFloat(float value)
throws javax.jms.JMSException
writeFloat in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeInt(int value)
throws javax.jms.JMSException
writeInt in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeLong(long value)
throws javax.jms.JMSException
writeLong in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeShort(short value)
throws javax.jms.JMSException
writeShort in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeString(java.lang.String value)
throws javax.jms.JMSException
writeString in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException - If the value could not be written on the stream.
public void writeObject(java.lang.Object value)
throws javax.jms.JMSException
writeObject in interface javax.jms.StreamMessagejavax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException - If the value could not be written on the stream.
public boolean readBoolean()
throws javax.jms.JMSException
readBoolean in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public byte readByte()
throws javax.jms.JMSException
readByte in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public short readShort()
throws javax.jms.JMSException
readShort in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public char readChar()
throws javax.jms.JMSException
readChar in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public int readInt()
throws javax.jms.JMSException
readInt in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public long readLong()
throws javax.jms.JMSException
readLong in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public float readFloat()
throws javax.jms.JMSException
readFloat in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public double readDouble()
throws javax.jms.JMSException
readDouble in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public int readBytes(byte[] bytes)
throws javax.jms.JMSException
readBytes in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public java.lang.String readString()
throws javax.jms.JMSException
readString in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the expected type is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public java.lang.Object readObject()
throws javax.jms.JMSException
readObject in interface javax.jms.StreamMessagejavax.jms.MessageNotReadableException - If the message body is write-only.
javax.jms.MessageFormatException - If reading the body is
not possible.
javax.jms.MessageEOFException - Unexpected end of bytes array.
javax.jms.JMSException - internal error
public void reset()
throws javax.jms.JMSException
reset in interface javax.jms.StreamMessagejavax.jms.JMSException - If an error occurs while closing the output
stream.
protected void prepare()
throws java.lang.Exception
prepare in class Messagejava.lang.Exception - If an error occurs while serializing.
|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||