| java.lang.Object org.apache.poi.util.LongField
LongField | public class LongField implements FixedField(Code) | | representation of a long (16-bit) field at a fixed location within
a byte array
author: Marc Johnson (mjohnson at apache dot org |
Constructor Summary | |
public | LongField(int offset) | public | LongField(int offset, long value) | public | LongField(int offset, byte[] data) | public | LongField(int offset, long value, byte[] data) |
LongField | public LongField(int offset, long value) throws ArrayIndexOutOfBoundsException(Code) | | construct the LongField 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 |
LongField | public LongField(int offset, byte[] data) throws ArrayIndexOutOfBoundsException(Code) | | Construct the LongField 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) |
LongField | public LongField(int offset, long value, byte[] data) throws ArrayIndexOutOfBoundsException(Code) | | construct the LongField with its offset into its containing
byte array, initialize its value, and write the value to a 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 long get()(Code) | | get the LongField'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(long value)(Code) | | set the LongField's current value
Parameters: value - to be set |
toString | public String toString()(Code) | | return the value as a String
the value as a String |
|
|