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.

  • 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
      Specified by:
      serialize in class StandardRecord
      Parameters:
      out - the output object
    • getDataSize

      protected int getDataSize()
      Specified by:
      getDataSize in class StandardRecord
    • toString

      public 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 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 Object clone()
      Overrides:
      clone in class Record