@Override
    public byte readByte() throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "readByte");

        try {
            // Check that we are in read mode
            checkBodyReadable("readByte");
            if (requiresInit)
                lazyInitForReading();

            // Read the byte from the input stream
            byte byteRead = readStream.readByte(); // read the byte

            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "readByte", byteRead);
            return byteRead;
        } catch (IOException e) {
            JMSException jmse = (JMSException) JmsErrorUtils.newThrowable(
                                                            MessageEOFException.class,
                                                            "END_BYTESMESSAGE_CWSIA0183",
                                                            null,
                                                            tc);
            jmse.initCause(e);
            throw jmse;
        }
    }
@ Override public byte readByte ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "readByte" ) ; try { checkBodyReadable ( "readByte" ) ; if ( requiresInit ) lazyInitForReading ( ) ; byte byteRead = readStream . readByte ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "readByte" , byteRead ) ; return byteRead ; } catch ( IOException e ) { JMSException jmse = ( JMSException ) JmsErrorUtils . newThrowable ( MessageEOFException . class , "END_BYTESMESSAGE_CWSIA0183" , null , tc ) ; jmse . initCause ( e ) ; throw jmse ; } }
Read a signed 8-bit value from the stream message.

@return the next byte from the stream message as a signed 8-bit
<code>byte</code>.

@exception MessageNotReadableException if message in write-only mode.
@exception MessageEOFException if end of message stream
@exception JMSException if JMS fails to read message due to
some internal JMS error.