nevado-jms/src/main/java/org/skyscreamer/nevado/jms/message/NevadoStreamMessage.java
/**
     * Writes a portion of a byte array as a byte array field to the stream
     * message. <p/>
     * <P>
     * The a portion of the byte array <code>value</code> is written to the
     * message as a byte array field. Consecutively written byte array fields
     * are treated as two distinct fields when the fields are read.
     *
     * @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 as a byte array field to the stream
message. 

The a portion of the byte array value is written to the
message as a byte array field. Consecutively written byte array fields
are treated as two distinct fields when the fields are read.

@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 as a byte array field to the stream message . The a portion of the byte array value is written to the message as a byte array field . Consecutively written byte array fields are treated as two distinct fields when the fields are read . @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 {
            MarshallingSupport.marshalByteArray(dataOut, value, offset, length);
        } catch (IOException e) {
            String exMessage = "Could not write byte[]: " + e.getMessage();
            _log.error(exMessage, e);
            throw new JMSException(exMessage);
        }
    }
public void writeBytes ( byte [ ] value , int offset , int length ) throws JMSException { initializeWriting ( ) ; try { MarshallingSupport . marshalByteArray ( dataOut , value , offset , length ) ; } catch ( IOException e ) { String exMessage = "Could not write byte[]: " + e . getMessage ( ) ; _log . error ( exMessage , e ) ; throw new JMSException ( exMessage ) ; } }
Writes a portion of a byte array as a byte array field to the stream
 message.
Writes a portion of a byte array as a byte array field to the stream message .