Package org.apache.tika.parser.microsoft
Class TikaExcelDataFormatter
java.lang.Object
org.apache.poi.ss.usermodel.DataFormatter
org.apache.tika.parser.microsoft.TikaExcelDataFormatter
Overrides Excel's General format to include more
significant digits than the MS Spec allows.
See TIKA-2025.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatRawCellContents(double value, int formatIndex, String formatString, boolean use1904Windowing) Formats the given raw cell value, based on the supplied format index and string, according to excel style rules.voidsetDateFormatOverride(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 Details
-
TikaExcelDataFormatter
public TikaExcelDataFormatter() -
TikaExcelDataFormatter
-
-
Method Details
-
formatRawCellContents
public String formatRawCellContents(double value, int formatIndex, String formatString, boolean use1904Windowing) Description copied from class:DataFormatterFormats the given raw cell value, based on the supplied format index and string, according to excel style rules.- Overrides:
formatRawCellContentsin classDataFormatter- See Also:
-
setDateFormatOverride
-