Class Record

java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
Direct Known Subclasses:
AbstractEscherHolderRecord, ContinuableRecord, LabelRecord, LastCellOfRowDummyRecord, MissingCellDummyRecord, MissingRowDummyRecord, ObjRecord, StandardRecord

public abstract class Record extends RecordBase
All HSSF Records inherit from this class.
  • Constructor Details

    • Record

      protected Record()
  • Method Details

    • serialize

      public final byte[] serialize()
      called by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a byte array.
      Returns:
      byte array containing instance data
    • toString

      public String toString()
      get a string representation of the record (for biffview/debugging)
      Overrides:
      toString in class Object
    • getSid

      public abstract short getSid()
      return the non static version of the id for this record.
      Returns:
      he id for this record
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • cloneViaReserialise

      public Record cloneViaReserialise()
      Clone the current record, via a call to serialize it, and another to create a new record from the bytes. May only be used for classes which don't have internal counts / ids in them. For those which do, a full model-aware cloning is needed, which allocates new ids / counts as needed.
      Returns:
      the cloned current record