public class FormatTrackingHSSFListener extends java.lang.Object implements HSSFListener
| Constructor and Description |
|---|
FormatTrackingHSSFListener(HSSFListener childListener)
Creates a format tracking wrapper around the given listener, using
the
default locale for the formats. |
FormatTrackingHSSFListener(HSSFListener childListener,
java.util.Locale locale)
Creates a format tracking wrapper around the given listener, using
the given locale for the formats.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatNumberDateCell(CellValueRecordInterface cell)
Formats the given numeric of date Cell's contents as a String, in as
close as we can to the way that Excel would do so.
|
int |
getFormatIndex(CellValueRecordInterface cell)
Returns the index of the format string, used by your cell, or -1 if none
found
|
java.lang.String |
getFormatString(CellValueRecordInterface cell)
Returns the format string, eg $##.##, used by your cell
|
java.lang.String |
getFormatString(int formatIndex)
Returns the format string, eg $##.##, for the given number format index.
|
protected int |
getNumberOfCustomFormats() |
protected int |
getNumberOfExtendedFormats() |
void |
processRecord(Record record)
Process this record ourselves, and then pass it on to our child listener
|
void |
processRecordInternally(Record record)
Process the record ourselves, but do not pass it on to the child
Listener.
|
public FormatTrackingHSSFListener(HSSFListener childListener)
default locale for the formats.public FormatTrackingHSSFListener(HSSFListener childListener, java.util.Locale locale)
protected int getNumberOfCustomFormats()
protected int getNumberOfExtendedFormats()
public void processRecord(Record record)
processRecord in interface HSSFListenerpublic void processRecordInternally(Record record)
record - public java.lang.String formatNumberDateCell(CellValueRecordInterface cell)
public java.lang.String getFormatString(int formatIndex)
public java.lang.String getFormatString(CellValueRecordInterface cell)
public int getFormatIndex(CellValueRecordInterface cell)
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.