public abstract class StandardRecord extends Record
| Modifier | Constructor and Description |
|---|---|
protected |
StandardRecord() |
protected |
StandardRecord(StandardRecord other) |
| Modifier and Type | Method and Description |
|---|---|
abstract StandardRecord |
copy() |
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.
|
cloneViaReserialise, getGenericRecordType, getSid, serialize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildren, getGenericPropertiesprotected StandardRecord()
protected StandardRecord(StandardRecord other)
protected abstract int getDataSize()
public final int getRecordSize()
RecordBasegetRecordSize in class RecordBasepublic final int serialize(int offset,
byte[] data)
The subclass must write the exact number of bytes as reported by
RecordBase.getRecordSize()}
serialize in class RecordBaseoffset - to begin writing atdata - byte array containing instance dataprotected 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 objectpublic abstract StandardRecord copy()
copy in interface Duplicatablecopy in class RecordCopyright 2022 The Apache Software Foundation or its licensors, as applicable.