nevado-jms/src/main/java/org/skyscreamer/nevado/jms/message/NevadoBytesMessage.java
/**
     * Reads an unsigned 16-bit number from the bytes message stream.
     *
     * @return the next two bytes from the bytes message stream, interpreted as an unsigned 16-bit integer
     * @throws JMSException                if the JMS provider fails to read the message due to some internal error.
     * @throws MessageEOFException         if unexpected end of bytes stream has been reached.
     * @throws MessageNotReadableException if the message is in write-only mode.
     */
Reads an unsigned 16-bit number from the bytes message stream.
@return the next two bytes from the bytes message stream, interpreted as an unsigned 16-bit integer
@throws JMSException                if the JMS provider fails to read the message due to some internal error.
@throws MessageEOFException         if unexpected end of bytes stream has been reached.
@throws MessageNotReadableException if the message is in write-only mode.
Reads an unsigned 16 - bit number from the bytes message stream . @return the next two bytes from the bytes message stream interpreted as an unsigned 16 - bit integer @throws JMSException if the JMS provider fails to read the message due to some internal error . @throws MessageEOFException if unexpected end of bytes stream has been reached . @throws MessageNotReadableException if the message is in write - only mode .
public int readUnsignedShort() throws JMSException {
        initializeReading();
        try {
            return this.dataIn.readUnsignedShort();
        }
        catch (EOFException eof) {
            JMSException jmsEx = new MessageEOFException(eof.getMessage());
            jmsEx.setLinkedException(eof);
            throw jmsEx;
        }
        catch (IOException ioe) {
            JMSException jmsEx = new JMSException("Format error occured" + ioe.getMessage());
            jmsEx.setLinkedException(ioe);
            throw jmsEx;
        }
    }
public int readUnsignedShort ( ) throws JMSException { initializeReading ( ) ; try { return this . dataIn . readUnsignedShort ( ) ; } catch ( EOFException eof ) { JMSException jmsEx = new MessageEOFException ( eof . getMessage ( ) ) ; jmsEx . setLinkedException ( eof ) ; throw jmsEx ; } catch ( IOException ioe ) { JMSException jmsEx = new JMSException ( "Format error occured" + ioe . getMessage ( ) ) ; jmsEx . setLinkedException ( ioe ) ; throw jmsEx ; } }
Reads an unsigned 16-bit number from the bytes message stream.
Reads an unsigned 16 - bit number from the bytes message stream .