|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.RecordBase org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.StandardRecord
public abstract class StandardRecord
Subclasses of this class (the majority of BIFF records) are non-continuable. This allows for some simplification of serialization logic
Constructor Summary | |
---|---|
StandardRecord()
|
Method Summary | |
---|---|
protected abstract int |
getDataSize()
|
int |
getRecordSize()
gives the current serialized size of the record. |
int |
serialize(int offset,
byte[] data)
Write the data content of this BIFF record including the sid and record length. |
protected abstract void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record. |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
clone, cloneViaReserialise, getSid, serialize, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandardRecord()
Method Detail |
---|
protected abstract int getDataSize()
public final int getRecordSize()
RecordBase
getRecordSize
in class RecordBase
public final int serialize(int offset, byte[] data)
The subclass must write the exact number of bytes as reported by
RecordBase.getRecordSize()
}
serialize
in class RecordBase
offset
- to begin writing atdata
- byte array containing instance data
protected abstract void serialize(LittleEndianOutput out)
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()
} minus four
( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written
by their superclass).
out
- the output object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |