Reads an object from the stream message.
Namespace:
Kaazing.JMSThis method can be used to return, in objectified format, an object that has been written to the stream with the equivalent writeObject method call, or its equivalent primitive writetype method.
Note that byte values are returned as byte[], not Byte[].
An attempt to call readObject to read a byte field value into a new byte[] object before the full value of the byte field has been read will throw a MessageFormatException.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
Return Value
a object from the stream message, in objectified format (for example, if the object was written as an int, an Integer is returned)
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to read the message due to some internal error. |
| Kaazing.JMS..::..MessageEOFException | if unexpected end of message stream has been reached. |
| Kaazing.JMS..::..MessageFormatException | if this type conversion is invalid. |
| Kaazing.JMS..::..MessageNotReadableException | if the message is in write-only mode. |