Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String formatRawCellContents​(double value, int formatIndex, java.lang.String formatString, boolean use1904Windowing)  
      void setDateFormatOverride​(java.lang.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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
        Overrides:
        formatRawCellContents in class org.apache.poi.ss.usermodel.DataFormatter
      • setDateFormatOverride

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