nevado-jms/src/main/java/org/skyscreamer/nevado/jms/message/NevadoBytesMessage.java
/**
     * Writes a <code>short</code> to the bytes message stream as two bytes, high byte first.
     *
     * @param value the <code>short</code> to be written
     * @throws JMSException                 if the JMS provider fails to write the message due to some internal error.
     * @throws MessageNotWriteableException if the message is in read-only mode.
     */
Writes a short to the bytes message stream as two bytes, high byte first.
@param value the short to be written
@throws JMSException                 if the JMS provider fails to write the message due to some internal error.
@throws MessageNotWriteableException if the message is in read-only mode.
Writes a short to the bytes message stream as two bytes high byte first . @param value the short to be written @throws JMSException if the JMS provider fails to write the message due to some internal error . @throws MessageNotWriteableException if the message is in read - only mode .
public void writeShort(short value) throws JMSException {
        initializeWriting();
        try {
            this.dataOut.writeShort(value);
        }
        catch (IOException ioe) {
            JMSException jmsEx = new JMSException("Could not write data:" + ioe.getMessage());
            jmsEx.setLinkedException(ioe);
            throw jmsEx;
        }
    }
public void writeShort ( short value ) throws JMSException { initializeWriting ( ) ; try { this . dataOut . writeShort ( value ) ; } catch ( IOException ioe ) { JMSException jmsEx = new JMSException ( "Could not write data:" + ioe . getMessage ( ) ) ; jmsEx . setLinkedException ( ioe ) ; throw jmsEx ; } }
Writes a <code>short</code> to the bytes message stream as two bytes, high byte first.
Writes a <code > short< / code > to the bytes message stream as two bytes high byte first .