Class FormatRecord

All Implemented Interfaces:
org.apache.poi.common.Duplicatable, GenericRecord

public final class FormatRecord extends StandardRecord
Describes a number format -- those goofy strings like $(#,###)
  • Field Details

  • Constructor Details

    • FormatRecord

      public FormatRecord(int indexCode, String fs)
    • FormatRecord

      public FormatRecord(RecordInputStream in)
  • Method Details

    • getIndexCode

      public int getIndexCode()
      get the format index code (for built in formats)
      Returns:
      the format index code
      See Also:
    • getFormatString

      public String getFormatString()
      get the format string
      Returns:
      the format string
    • serialize

      public void serialize(LittleEndianOutput out)
    • 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
    • copy

      public FormatRecord 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()