public abstract class ContinuableRecord extends Record
ContinueRecords while being serialized.| Modifier | Constructor and Description |
|---|---|
protected |
ContinuableRecord() |
| Modifier and Type | Method and Description |
|---|---|
int |
getRecordSize()
gives the current serialized size of the record.
|
protected abstract void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
protected abstract void serialize(ContinuableRecordOutput out)
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so
only BIFF data should be written by this method. Simple data types can be written with the
standard LittleEndianOutput methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecords being written as required).
If necessary, implementors can explicitly start ContinueRecords (regardless of the
amount of remaining space).
out - a data output streampublic final int getRecordSize()
RecordBasegetRecordSize in class RecordBaseContinueRecord is required, this result includes the
size of those too)public final int serialize(int offset,
byte[] data)
RecordBaseserialize in class RecordBaseoffset - to begin writing atdata - byte array containing instance dataCopyright 2018 The Apache Software Foundation or its licensors, as applicable.