Class TikaExcelDataFormatter

  • All Implemented Interfaces:
    java.util.Observer

    public class TikaExcelDataFormatter
    extends DataFormatter
    Overrides Excel's General format to include more significant digits than the MS Spec allows. See TIKA-2025.
    • Constructor Detail

      • TikaExcelDataFormatter

        public TikaExcelDataFormatter()
      • TikaExcelDataFormatter

        public TikaExcelDataFormatter​(java.util.Locale locale)
    • Method Detail

      • formatRawCellContents

        public java.lang.String formatRawCellContents​(double value,
                                                      int formatIndex,
                                                      java.lang.String formatString,
                                                      boolean use1904Windowing)
        Description copied from class: DataFormatter
        Formats the given raw cell value, based on the supplied format index and string, according to excel style rules.
        Overrides:
        formatRawCellContents in class DataFormatter
        See Also:
        DataFormatter.formatCellValue(Cell)
      • setDateFormatOverride

        public void setDateFormatOverride​(java.lang.String dateOverrideFormat)