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, getSid, serialize, toString
protected StandardRecord()
protected StandardRecord(StandardRecord other)
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 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 Duplicatable
copy
in class Record
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.