/** * Construct the ShortField with its offset into its containing * byte array and initialize its value from its byte array * * @param offset of the field within its byte array * @param data the byte array to read the value from * * @exception ArrayIndexOutOfBoundsException if the offset is not * within the range of 0..(data.length - 1) */ public ShortField(final int offset, final byte [] data) throws ArrayIndexOutOfBoundsException { this(offset); readFromBytes(data); }
/** * Construct the ShortField with its offset into its containing * byte array and initialize its value from its byte array * * @param offset of the field within its byte array * @param data the byte array to read the value from * * @exception ArrayIndexOutOfBoundsException if the offset is not * within the range of 0..(data.length - 1) */ public ShortField(final int offset, final byte [] data) throws ArrayIndexOutOfBoundsException { this(offset); readFromBytes(data); }
/** * Construct the ShortField with its offset into its containing * byte array and initialize its value from its byte array * * @param offset of the field within its byte array * @param data the byte array to read the value from * * @exception ArrayIndexOutOfBoundsException if the offset is not * within the range of 0..(data.length - 1) */ public ShortField(final int offset, final byte [] data) throws ArrayIndexOutOfBoundsException { this(offset); readFromBytes(data); }
/** * Construct the ShortField with its offset into its containing * byte array and initialize its value from its byte array * * @param offset of the field within its byte array * @param data the byte array to read the value from * * @exception ArrayIndexOutOfBoundsException if the offset is not * within the range of 0..(data.length - 1) */ public ShortField(final int offset, final byte [] data) throws ArrayIndexOutOfBoundsException { this(offset); readFromBytes(data); }