Package org.apache.poi.hssf.record
Class HeaderFooterBase
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.HeaderFooterBase
- All Implemented Interfaces:
Duplicatable,GenericRecord
- Direct Known Subclasses:
FooterRecord,HeaderRecord
Common header/footer base class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHeaderFooterBase(String text) protectedHeaderFooterBase(HeaderFooterBase other) protected -
Method Summary
Modifier and TypeMethodDescriptionabstract HeaderFooterBasecopy()protected final intfinal StringgetText()final voidWrite the data content of this BIFF record.final voidset the footer stringMethods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, getGenericRecordType, getSid, serialize, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Constructor Details
-
HeaderFooterBase
-
HeaderFooterBase
-
-
Method Details
-
setText
set the footer string- Parameters:
text- string to display
-
getText
-
serialize
Description copied from class:StandardRecordWrite the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).- Specified by:
serializein classStandardRecord- Parameters:
out- the output object
-
getDataSize
protected final int getDataSize()- Specified by:
getDataSizein classStandardRecord
-
copy
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classStandardRecord- Returns:
- a deep copy of the implementing class / instance
-
getGenericProperties
-