Class UnknownRecord


  • public final class UnknownRecord
    extends StandardRecord
    Title: Unknown Record (for debugging)

    Description: 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!)

    Company: SuperLink Software, Inc.

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

        public java.lang.String toString()
        print a sort of string representation ([UNKNOWN RECORD] id = x [/UNKNOWN RECORD])
        Overrides:
        toString in class Record
      • 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 java.lang.String getBiffName​(int sid)
        These BIFF record types are known but still uninterpreted by POI
        Returns:
        the documented name of this BIFF record type, null if unknown to POI
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class Record