44.3. Methods

The StreamMessage interface inherits the fields and the methods of the interface javax.jms.Message. The following methods are defined in the interface javax.jms.StreamMessage.

readBoolean

public boolean readBoolean()

Reads a boolean from the stream message.

RETURNS:

the boolean value read

THROWS:

JMSException if the JMS provider fails to read the message due to some internal error
MessageEOFException if unexpected end of message stream has been reached
MessageFormatException if this type conversion is invalid
MessageNotReadableException if the message is in write-only mode

readByte

public byte readByte()

Reads a byte value from the stream message.

RETURNS:

the next byte from the stream message as a 8-bit byte

THROWS:

JMSException ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.