Package loci.poi.hssf.record
Class ContinueRecord
java.lang.Object
loci.poi.hssf.record.Record
loci.poi.hssf.record.ContinueRecord
Title: Continue Record - Helper class used primarily for SST Records
Description: handles overflow for prior record in the input stream; content is tailored to that prior record
- Version:
- 2.0-pre
- Author:
- Marc Johnson (mjohnson at apache dot org), Andrew C. Oliver (acoliver at apache dot org), Csaba Nagy (ncsaba at yahoo dot com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorMain constructor -- kinda dummy because we don't validate or fill fields -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone this record.protected voidFill the fields.byte[]getData()get the data for continuationshortgetSid()return the non static version of the id for this record.byte[]USE ONLY within "processContinue"intserialize(int offset, byte[] data) called by the class that is responsible for writing this sucker.voidsetData(byte[] data) toString()Debugging toStringprotected voidvalidateSid(short id) Make sure we have a good idMethods inherited from class loci.poi.hssf.record.Record
getRecordSize, isInValueSection, isValue
-
Field Details
-
sid
public static final short sid- See Also:
-
-
Constructor Details
-
ContinueRecord
public ContinueRecord()default constructor -
ContinueRecord
Main constructor -- kinda dummy because we don't validate or fill fields- Parameters:
in- the RecordInputstream to read the record from
-
-
Method Details
-
serialize
public byte[] serialize()USE ONLY within "processContinue" -
serialize
public int serialize(int offset, byte[] data) Description copied from class:Recordcalled 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. -
setData
public void setData(byte[] data) -
getData
public byte[] getData()get the data for continuation- Returns:
- byte array containing all of the continued data
-
validateSid
protected void validateSid(short id) Make sure we have a good id- Specified by:
validateSidin classRecord- Parameters:
id- the alleged id
-
toString
Debugging toString -
getSid
public short getSid()Description copied from class:Recordreturn the non static version of the id for this record. -
fillFields
Fill the fields. Only thing is, this record has no fields --- Specified by:
fillFieldsin classRecord- Parameters:
in- the RecordInputstream to read the record from
-
clone
Clone this record.
-