Class 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!)
    • Constructor Detail

      • 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 Detail

      • serialize

        public void serialize​(LittleEndianOutput out)
        spit the record out AS IS. no interpretation or identification
        Specified by:
        serialize in class StandardRecord
        Parameters:
        out - the output object
      • 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