Package loci.poi.hssf.record
Class NoteStructureSubRecord
- java.lang.Object
-
- loci.poi.hssf.record.Record
-
- loci.poi.hssf.record.SubRecord
-
- loci.poi.hssf.record.NoteStructureSubRecord
-
public class NoteStructureSubRecord extends SubRecord
Represents a NoteStructure (0xD) sub record.The docs say nothing about it. The length of this record is always 26 bytes.
- Author:
- Yegor Kozlov
-
-
Field Summary
Fields Modifier and Type Field Description static short
sid
-
Constructor Summary
Constructors Constructor Description NoteStructureSubRecord()
Construct a newNoteStructureSubRecord
and fill its data with the default valuesNoteStructureSubRecord(RecordInputStream in)
Constructs a NoteStructureSubRecord and sets its fields appropriately.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillFields(RecordInputStream in)
Read the record data from the suppliedRecordInputStream
int
getRecordSize()
Size of recordshort
getSid()
return the non static version of the id for this record.int
serialize(int offset, byte[] data)
Serialize the record data into the supplied array of bytesString
toString()
Convert this record to string.protected void
validateSid(short id)
Checks the sid matches the expected side for this record-
Methods inherited from class loci.poi.hssf.record.SubRecord
createSubRecord
-
Methods inherited from class loci.poi.hssf.record.Record
clone, isInValueSection, isValue, serialize
-
-
-
-
Field Detail
-
sid
public static final short sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NoteStructureSubRecord
public NoteStructureSubRecord()
Construct a newNoteStructureSubRecord
and fill its data with the default values
-
NoteStructureSubRecord
public NoteStructureSubRecord(RecordInputStream in)
Constructs a NoteStructureSubRecord and sets its fields appropriately.
-
-
Method Detail
-
validateSid
protected void validateSid(short id)
Checks the sid matches the expected side for this record- Specified by:
validateSid
in classRecord
- Parameters:
id
- the expected sid.
-
fillFields
protected void fillFields(RecordInputStream in)
Read the record data from the suppliedRecordInputStream
- Specified by:
fillFields
in classRecord
- Parameters:
in
- the RecordInputstream to read the record from
-
toString
public String toString()
Convert this record to string. Used by BiffViewer and other utulities.
-
serialize
public int serialize(int offset, byte[] data)
Serialize the record data into the supplied array of bytes
-
getRecordSize
public int getRecordSize()
Size of record- Overrides:
getRecordSize
in classRecord
-
-