Methods Summary |
---|
public java.lang.Object | clone()
throw new RuntimeException("The class "+getClass().getName()+" needs to define a clone method");
|
protected abstract void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)called by the constructor, should set class level fields. Should throw
runtime exception for bad/icomplete data.
|
public int | getRecordSize()gives the current serialized size of the record. Should include the sid and reclength (4 bytes).
// 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;
|
public abstract short | getSid()return the non static version of the id for this record.
|
public boolean | isInValueSection()DBCELL, ROW, VALUES all say yes
return false;
|
public boolean | isValue()tells whether this type of record contains a value
return false;
|
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.
byte[] retval = new byte[ getRecordSize() ];
serialize(0, retval);
return retval;
|
public abstract int | serialize(int offset, byte[] data)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 java.lang.String | toString()get a string representation of the record (for biffview/debugging)
return super.toString();
|
protected abstract void | validateSid(short id)called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
|