11.3. Methods

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

readBoolean

public boolean readBoolean()

Reads a boolean from the bytes message stream.

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 bytes stream has been reached
MessageNotReadableException if the message is in write-only mode

readByte

public byte readByte()

Reads a signed 8-bit value from the bytes message stream.

RETURNS:

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

THROWS:

JMSException if the JMS provider fails to ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.