nevado-jms/src/main/java/org/skyscreamer/nevado/jms/message/NevadoBytesMessage.java
/**
     * Writes a portion of a byte array to the bytes message stream.
     *
     * @param value  the byte array value to be written
     * @param offset the initial offset within the byte array
     * @param length the number of bytes to use
     * @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 portion of a byte array to the bytes message stream.
@param value  the byte array value to be written
@param offset the initial offset within the byte array
@param length the number of bytes to use
@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 portion of a byte array to the bytes message stream . @param value the byte array value to be written @param offset the initial offset within the byte array @param length the number of bytes to use @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 writeBytes(byte[] value, int offset, int length) throws JMSException {
        initializeWriting();
        try {
            this.dataOut.write(value, offset, length);
        }
        catch (IOException ioe) {
            JMSException jmsEx = new JMSException("Could not write data:" + ioe.getMessage());
            jmsEx.setLinkedException(ioe);
            throw jmsEx;
        }
    }
public void writeBytes ( byte [ ] value , int offset , int length ) throws JMSException { initializeWriting ( ) ; try { this . dataOut . write ( value , offset , length ) ; } catch ( IOException ioe ) { JMSException jmsEx = new JMSException ( "Could not write data:" + ioe . getMessage ( ) ) ; jmsEx . setLinkedException ( ioe ) ; throw jmsEx ; } }
Writes a portion of a byte array to the bytes message stream.
Writes a portion of a byte array to the bytes message stream .