Package org.apache.tika.parser.microsoft
Class TikaExcelDataFormatter
- java.lang.Object
-
- org.apache.poi.ss.usermodel.DataFormatter
-
- org.apache.tika.parser.microsoft.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 Summary
Constructors Constructor Description TikaExcelDataFormatter()
TikaExcelDataFormatter(java.util.Locale locale)
-
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)
Formats the given raw cell value, based on the supplied format index and string, according to excel style rules.void
setDateFormatOverride(java.lang.String dateOverrideFormat)
-
Methods inherited from class org.apache.poi.ss.usermodel.DataFormatter
addFormat, createFormat, formatCellValue, formatCellValue, formatCellValue, formatRawCellContents, getDefaultFormat, getLocaleChangedObservable, setDefaultNumberFormat, setExcelStyleRoundingMode, setExcelStyleRoundingMode, update
-
-
-
-
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 classDataFormatter
- See Also:
DataFormatter.formatCellValue(Cell)
-
setDateFormatOverride
public void setDateFormatOverride(java.lang.String dateOverrideFormat)
-
-