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 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.