Package org.apache.tika.parser.microsoft
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 TikaExcelDataFormatter()
TikaExcelDataFormatter(Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
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
-
-
-
-
Constructor Detail
-
TikaExcelDataFormatter
public TikaExcelDataFormatter()
-
TikaExcelDataFormatter
public TikaExcelDataFormatter(Locale locale)
-
-
Method Detail
-
formatRawCellContents
public String formatRawCellContents(double value, int formatIndex, String formatString, boolean use1904Windowing)
- Overrides:
formatRawCellContents
in classorg.apache.poi.ss.usermodel.DataFormatter
-
setDateFormatOverride
public void setDateFormatOverride(String dateOverrideFormat)
-
-