Class TikaExcelDataFormatter

java.lang.Object
org.apache.poi.ss.usermodel.DataFormatter
org.apache.tika.parser.microsoft.TikaExcelDataFormatter

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

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    formatRawCellContents(double value, int formatIndex, String formatString, boolean use1904Windowing)
     
    void
    setDateFormatOverride(String dateOverrideFormat)
     

    Methods inherited from class org.apache.poi.ss.usermodel.DataFormatter

    addFormat, createFormat, formatCellValue, formatCellValue, formatCellValue, formatRawCellContents, getDefaultFormat, getLocaleChangedObservable, isEmulateCSV, setDefaultNumberFormat, setEmulateCSV, setExcelStyleRoundingMode, setExcelStyleRoundingMode, setUse4DigitYearsInAllDateFormats, setUseCachedValuesForFormulaCells, updateLocale, use4DigitYearsInAllDateFormats, useCachedValuesForFormulaCells

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TikaExcelDataFormatter

      public TikaExcelDataFormatter()
    • TikaExcelDataFormatter

      public TikaExcelDataFormatter(Locale locale)
  • Method Details

    • formatRawCellContents

      public String formatRawCellContents(double value, int formatIndex, String formatString, boolean use1904Windowing)
      Overrides:
      formatRawCellContents in class org.apache.poi.ss.usermodel.DataFormatter
    • setDateFormatOverride

      public void setDateFormatOverride(String dateOverrideFormat)