Package org.apache.poi.hssf.record
Class SubRecord
java.lang.Object
org.apache.poi.hssf.record.SubRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
- Direct Known Subclasses:
CommonObjectDataSubRecord,EmbeddedObjectRefSubRecord,EndSubRecord,FtCblsSubRecord,FtCfSubRecord,FtPioGrbitSubRecord,GroupMarkerSubRecord,LbsDataSubRecord,NoteStructureSubRecord
public abstract class SubRecord
extends Object
implements org.apache.poi.common.Duplicatable, GenericRecord
Subrecords are part of the OBJ class.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionabstract SubRecordcopy()static SubRecordcreateSubRecord(LittleEndianInput in, int cmoOt) read a sub-record from the supplied streamabstract SubRecord.SubRecordTypesstatic intbooleanWhether this record terminates the sub-record stream.byte[]abstract voidstatic voidsetMaxRecordLength(int length) final StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericProperties
-
Method Details
-
setMaxRecordLength
public static void setMaxRecordLength(int length) - Parameters:
length- the max record length allowed for SubRecord
-
getMaxRecordLength
public static int getMaxRecordLength()- Returns:
- the max record length allowed for SubRecord
-
createSubRecord
read a sub-record from the supplied stream- Parameters:
in- the stream to read fromcmoOt- the objectType field of the containing CommonObjectDataSubRecord, we need it to propagate to next sub-records as it defines what data follows- Returns:
- the created sub-record
-
toString
-
serialize
public byte[] serialize() -
serialize
-
isTerminating
public boolean isTerminating()Whether this record terminates the sub-record stream. There are two cases when this method must be overridden and returntrue- EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12)- Returns:
- whether this record is the last in the sub-record stream
-
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord
-