Top Description Constructors Methods
org.apache.poi.hssf.record

public abstract Class RecordBase

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.poi.hssf.record.aggregates.RecordAggregate, org.apache.poi.hssf.record.Record

Common base class of Record and org.apache.poi.hssf.record.aggregates.RecordAggregate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract int

Returns:

the record size
getRecordSize
()

gives the current serialized size of the record.

public abstract int

Returns:

number of bytes written
serialize
(int
to begin writing at
offset
,
byte[]
byte array containing instance data
data
)

called by the class that is responsible for writing this sucker.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RecordBaseback to summary
public RecordBase()

Method Detail

getRecordSizeback to summary
public abstract int getRecordSize()

gives the current serialized size of the record. Should include the sid and reclength (4 bytes).

Returns:int

the record size

serializeback to summary
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.

Parameters
offset:int

to begin writing at

data:byte[]

byte array containing instance data

Returns:int

number of bytes written