org.apache.cocoon.poi.hssf.record
abstract public class: Record [javadoc |
source]
java.lang.Object
org.apache.cocoon.poi.hssf.record.Record
Direct Known Subclasses:
DeltaRecord, ExtendedFormatRecord, FormulaRecord, IndexRecord, PasswordRev4Record, FormatRecord, CountryRecord, MulBlankRecord, UseSelFSRecord, WSBoolRecord, ProtectRecord, ContinueRecord, ColumnInfoRecord, HideObjRecord, PrecisionRecord, DefaultColWidthRecord, RKRecord, DateWindow1904Record, InterfaceEndRecord, LabelSSTRecord, FooterRecord, DSFRecord, StyleRecord, DBCellRecord, UnicodeString, CodepageRecord, ExtSSTRecord, BlankRecord, ProtectionRev4Record, HeaderRecord, VCenterRecord, CalcCountRecord, RefModeRecord, PrintGridlinesRecord, PrintSetupRecord, MulRKRecord, HCenterRecord, GutsRecord, NumberRecord, WindowProtectRecord, RowRecord, DimensionsRecord, RefreshAllRecord, EOFRecord, InterfaceHdrRecord, TabIdRecord, WriteAccessRecord, SaveRecalcRecord, PrintHeadersRecord, PasswordRecord, LabelRecord, MMSRecord, CalcModeRecord, WindowOneRecord, SSTRecord, BOFRecord, SelectionRecord, GridsetRecord, FnGroupCountRecord, UnknownRecord, BookBoolRecord, BoundSheetRecord, BackupRecord, ExtSSTInfoSubRecord, FontRecord, DefaultRowHeightRecord, IterationRecord, WindowTwoRecord
Title: Record
Description: All HSSF Records inherit from this class. It
populates the fields common to all records (id, size and data).
Subclasses should be sure to validate the id,
Copyright: Copyright (c) 2001
Company:
- author:
Andrew - C. Oliver
- author:
Marc - Johnson (marc_johnson27591@hotmail.com)
- version:
1.0 -
| Field Summary |
|---|
| public short | sid | The static ID, subclasses should override this value with the id for the
record type they handle. |
| Method from org.apache.cocoon.poi.hssf.record.Record Detail: |
protected void fillFields(byte[] data,
short size) {
fillFields(data, size, 0);
}
called by the constructor, should set class level fields. Should throw
runtime exception for bad/icomplete data. |
abstract protected void fillFields(byte[] data,
short size,
int offset)
called by the constructor, should set class level fields. Should throw
runtime exception for bad/icomplete data. |
public int getRecordSize() {
// this is kind od a stupid way to do it but for now we just serialize
// the record and return the size of the byte array
return serialize().length;
}
gives the current serialized size of the record. |
abstract public short getSid()
return the non static version of the id for this record. |
public boolean isInValueSection() {
return false;
}
DBCELL, ROW, VALUES all say yes |
public boolean isValue() {
return false;
}
tells whether this type of record contains a value |
public void processContinueRecord(byte[] record) {
// System.out.println("Got a continue record ... NOW what??");
}
Process a continuation record; default handling is to ignore
it -- TODO add logging |
abstract public byte[] serialize()
called by the class that is responsible for writing this sucker.
Subclasses should implement this so that their data is passed back in a
byte array. |
public String toString() {
return super.toString();
}
get a string representation of the record (for biffview/debugging) |
abstract protected void validateSid(short id)
called by constructor, should throw runtime exception in the event of a
record passed with a differing ID. |