Package org.apache.poi.hssf.record
Class UnknownRecord
- 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.UnknownRecord
-
- All Implemented Interfaces:
Duplicatable,GenericRecord
public final class UnknownRecord extends StandardRecord
Unknown record just tells you the sid so you can figure out what records you are missing. Also helps us read/modify sheets we don't know all the records to. (HSSF leaves these alone!)
-
-
Field Summary
Fields Modifier and Type Field Description static intBITMAP_00E9static intCODENAME_1BAstatic intHEADER_FOOTER_089Cstatic intLABELRANGES_015Fstatic intPHONETICPR_00EFstatic intPLS_004DEnvironment-Specific Print Recordstatic intPLV_MACstatic intPRINTSIZE_0033seems to be part of thePageSettingsBlock.static intQUICKTIP_0800static intSCL_00A0static intSHEETEXT_0862static intSHEETPR_0081static intSHEETPROTECTION_0867static intSORT_0090static intSTANDARDWIDTH_0099
-
Constructor Summary
Constructors Constructor Description UnknownRecord(int id, byte[] data)UnknownRecord(RecordInputStream in)construct an unknown record.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnknownRecordcopy()static StringgetBiffName(int sid)These BIFF record types are known but still uninterpreted by POIprotected intgetDataSize()Map<String,Supplier<?>>getGenericProperties()HSSFRecordTypesgetGenericRecordType()shortgetSid()return the non static version of the id for this record.voidserialize(LittleEndianOutput out)spit the record out AS IS.-
Methods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serialize
-
Methods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
-
-
-
Field Detail
-
PRINTSIZE_0033
public static final int PRINTSIZE_0033
seems to be part of thePageSettingsBlock. Not interpreted by POI. The name 'PRINTSIZE' was taken from OOO source.The few POI test samples with this record have data { 0x03, 0x00 }.
- See Also:
- Constant Field Values
-
PLS_004D
public static final int PLS_004D
Environment-Specific Print Record- See Also:
- Constant Field Values
-
SHEETPR_0081
public static final int SHEETPR_0081
- See Also:
- Constant Field Values
-
SORT_0090
public static final int SORT_0090
- See Also:
- Constant Field Values
-
STANDARDWIDTH_0099
public static final int STANDARDWIDTH_0099
- See Also:
- Constant Field Values
-
SCL_00A0
public static final int SCL_00A0
- See Also:
- Constant Field Values
-
BITMAP_00E9
public static final int BITMAP_00E9
- See Also:
- Constant Field Values
-
PHONETICPR_00EF
public static final int PHONETICPR_00EF
- See Also:
- Constant Field Values
-
LABELRANGES_015F
public static final int LABELRANGES_015F
- See Also:
- Constant Field Values
-
QUICKTIP_0800
public static final int QUICKTIP_0800
- See Also:
- Constant Field Values
-
SHEETEXT_0862
public static final int SHEETEXT_0862
- See Also:
- Constant Field Values
-
SHEETPROTECTION_0867
public static final int SHEETPROTECTION_0867
- See Also:
- Constant Field Values
-
HEADER_FOOTER_089C
public static final int HEADER_FOOTER_089C
- See Also:
- Constant Field Values
-
CODENAME_1BA
public static final int CODENAME_1BA
- See Also:
- Constant Field Values
-
PLV_MAC
public static final int PLV_MAC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnknownRecord
public UnknownRecord(int id, byte[] data)- Parameters:
id- id of the record -not validated, just stored for serializationdata- the data
-
UnknownRecord
public UnknownRecord(RecordInputStream in)
construct an unknown record. No fields are interpreted and the record will be serialized in its original form more or less- Parameters:
in- the RecordInputstream to read the record from
-
-
Method Detail
-
serialize
public void serialize(LittleEndianOutput out)
spit the record out AS IS. no interpretation or identification- Specified by:
serializein classStandardRecord- Parameters:
out- the output object
-
getDataSize
protected int getDataSize()
- Specified by:
getDataSizein classStandardRecord
-
getSid
public short getSid()
Description copied from class:Recordreturn the non static version of the id for this record.
-
getBiffName
public static String getBiffName(int sid)
These BIFF record types are known but still uninterpreted by POI- Parameters:
sid- The identifier for an unknown record type- Returns:
- the documented name of this BIFF record type,
nullif unknown to POI
-
copy
public UnknownRecord copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classStandardRecord- Returns:
- a deep copy of the implementing class / instance
-
getGenericRecordType
public HSSFRecordTypes getGenericRecordType()
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
-