jxl.read.biff
Class Record

java.lang.Object
  |
  +--jxl.read.biff.Record

public final class Record
extends java.lang.Object

A container for the raw record data within a biff file


Field Summary
private  int code
          The excel 97 code
private  byte[] data
          The raw data within this record
private  int dataPos
          A pointer to the beginning of the actual data
private  File file
          A handle to the excel 97 file
private  int length
          The length of this record
private  Type type
          The data type
 
Constructor Summary
(package private) Record(byte[] d, int offset, File f)
          Constructor
 
Method Summary
 int getCode()
          The excel 97 code
 byte[] getData()
          Gets the data portion of the record
 int getLength()
          Gets the length of the record
 Type getType()
          Gets the biff type
(package private)  void setType(Type t)
          In the case of dodgy records, this method may be called to forcibly set the type in order to continue processing
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

code

private int code
The excel 97 code

type

private Type type
The data type

length

private int length
The length of this record

dataPos

private int dataPos
A pointer to the beginning of the actual data

file

private File file
A handle to the excel 97 file

data

private byte[] data
The raw data within this record
Constructor Detail

Record

Record(byte[] d,
       int offset,
       File f)
Constructor
Parameters:
offset - the offset in the raw file
f - the excel 97 biff file
d - the data record
Method Detail

getType

public Type getType()
Gets the biff type
Returns:
the biff type

getLength

public int getLength()
Gets the length of the record
Returns:
the length of the record

getData

public byte[] getData()
Gets the data portion of the record
Returns:
the data portion of the record

getCode

public int getCode()
The excel 97 code
Returns:
the excel code

setType

void setType(Type t)
In the case of dodgy records, this method may be called to forcibly set the type in order to continue processing
Parameters:
t - the forcibly overridden type