| java.lang.Object org.apache.poi.util.ShortField
ShortField | public class ShortField implements FixedField(Code) | | representation of a short (16-bit) field at a fixed location within
a byte array
author: Marc Johnson (mjohnson at apache dot org |
ShortField | public ShortField(int offset, short value) throws ArrayIndexOutOfBoundsException(Code) | | construct the ShortField with its offset into its containing
byte array and initialize its value
Parameters: offset - of the field within its byte array Parameters: value - the initial value exception: ArrayIndexOutOfBoundsException - if offset is negative |
ShortField | public ShortField(int offset, byte[] data) throws ArrayIndexOutOfBoundsException(Code) | | Construct the ShortField with its offset into its containing
byte array and initialize its value from its byte array
Parameters: offset - of the field within its byte array Parameters: data - the byte array to read the value from exception: ArrayIndexOutOfBoundsException - if the offset is notwithin the range of 0..(data.length - 1) |
ShortField | public ShortField(int offset, short value, byte[] data) throws ArrayIndexOutOfBoundsException(Code) | | construct the ShortField with its offset into its containing
byte array, initialize its value, and write its value to its
byte array
Parameters: offset - of the field within its byte array Parameters: value - the initial value Parameters: data - the byte array to write the value to exception: ArrayIndexOutOfBoundsException - if offset is negative |
get | public short get()(Code) | | get the ShortField's current value
current value |
readFromStream | public void readFromStream(InputStream stream) throws IOException, BufferUnderrunException(Code) | | set the value from an InputStream
Parameters: stream - the InputStream from which the value is to beread exception: BufferUnderrunException - if there is not enough dataavailable from the InputStream exception: IOException - if an IOException is thrown from readingthe InputStream |
set | public void set(short value)(Code) | | set the ShortField's current value
Parameters: value - to be set |
toString | public String toString()(Code) | | return the value as a String
the value as a String |
|
|