Reads a signed 16-bit number from the bytes message stream.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Function ReadShort As Short
C#
short ReadShort()
Visual C++
short ReadShort()

Return Value

the next two bytes from the bytes message stream, interpreted as a signed 16-bit number

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to read the message due to some internal error.
Kaazing.JMS..::..MessageEOFExceptionif unexpected end of bytes stream has been reached.
Kaazing.JMS..::..MessageNotReadableExceptionif the message is in write-only mode.

See Also