Class UnknownRecord

All Implemented Interfaces:
org.apache.poi.common.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 Details

  • Constructor Details

    • UnknownRecord

      public UnknownRecord(int id, byte[] data)
      Parameters:
      id - id of the record -not validated, just stored for serialization
      data - 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 Details

    • serialize

      public void serialize(LittleEndianOutput out)
      spit the record out AS IS. no interpretation or identification
    • getSid

      public short getSid()
      Description copied from class: Record
      return the non static version of the id for this record.
      Specified by:
      getSid in class Record
      Returns:
      he 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, null if unknown to POI
    • copy

      public UnknownRecord copy()
      Specified by:
      copy in interface org.apache.poi.common.Duplicatable
      Specified by:
      copy in class StandardRecord
    • getGenericRecordType

      public HSSFRecordTypes getGenericRecordType()
      Specified by:
      getGenericRecordType in interface GenericRecord
      Specified by:
      getGenericRecordType in class Record
    • getGenericProperties

      public Map<String,Supplier<?>> getGenericProperties()