ExcelExtractor, but may not provide
the same richness of formatting.
Returns the textual content of the file, suitable for
indexing by something like Lucene, but not really
intended for display to the user.
To turn an excel file into a CSV or similar, then see the XLS2CSVmra example
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final DirectoryNode | |
| pack-priv boolean | |
| pack-priv boolean | |
| private boolean | |
| private final POIFSFileSystem |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides default org. Allows to free resources of the Extractor as soon as it is not needed any more. |
| public DocumentSummaryInformation | getDocSummaryInformation()
Overrides default org. Would return the document information metadata for the document, if we supported it |
| public POIDocument | getDocument()
Implements org. Return the underlying POIDocument |
| public Closeable | |
| public DirectoryEntry | getRoot()
Overrides default org. Return the underlying DirectoryEntry of this document. |
| public SummaryInformation | getSummaryInformation()
Overrides default org. Would return the summary information metadata for the document, if we supported it |
| public String | getText()
Implements org. Retreives the text contents of the file |
| public boolean | |
| public void | setCloseFilesystem(boolean
true (default), if underlying resources/filesystem should be
closed on close()Implements org.
|
| public void | setFormulasNotResults(boolean
true if the formula itself is returnedImplements org. Should we return the formula itself, and not the result it produces? |
| public void | setIncludeCellComments(boolean
true if cell comments should be includedImplements org. Would control the inclusion of cell comments from the document, if we supported it |
| public void | setIncludeHeadersFooters(boolean
true if headers and footers should be includedImplements org. Would control the inclusion of headers and footers from the document, if we supported it |
| public void | setIncludeSheetNames(boolean
true if the sheet names should be includedImplements org. Should sheet names be included? |
| private EventBasedExcelExtractor. |
| _dir | back to summary |
|---|---|
| private final DirectoryNode _dir | |
| _formulasNotResults | back to summary |
|---|---|
| pack-priv boolean _formulasNotResults | |
| _includeSheetNames | back to summary |
|---|---|
| pack-priv boolean _includeSheetNames | |
| doCloseFilesystem | back to summary |
|---|---|
| private boolean doCloseFilesystem | |
| poifs | back to summary |
|---|---|
| private final POIFSFileSystem poifs | |
| EventBasedExcelExtractor | back to summary |
|---|---|
| public EventBasedExcelExtractor(DirectoryNode dir) | |
| EventBasedExcelExtractor | back to summary |
|---|---|
| public EventBasedExcelExtractor(POIFSFileSystem fs) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides default org. Doc from org. Allows to free resources of the Extractor as soon as it is not needed any more. This may include closing open file handles and freeing memory. The Extractor cannot be used after close has been called.
| |
| getDocSummaryInformation | back to summary |
|---|---|
| public DocumentSummaryInformation getDocSummaryInformation() Overrides default org. Would return the document information metadata for the document, if we supported it
| |
| getDocument | back to summary |
|---|---|
| public POIDocument getDocument() Implements org. Doc from org. Return the underlying POIDocument
| |
| getFilesystem | back to summary |
|---|---|
| public Closeable getFilesystem() Implements org.
| |
| getRoot | back to summary |
|---|---|
| public DirectoryEntry getRoot() Overrides default org. Doc from org. Return the underlying DirectoryEntry of this document.
| |
| getSummaryInformation | back to summary |
|---|---|
| public SummaryInformation getSummaryInformation() Overrides default org. Would return the summary information metadata for the document, if we supported it
| |
| getText | back to summary |
|---|---|
| public String getText() Implements org. Retreives the text contents of the file
| |
| isCloseFilesystem | back to summary |
|---|---|
| public boolean isCloseFilesystem() Implements org.
| |
| setCloseFilesystem | back to summary |
|---|---|
| public void setCloseFilesystem(boolean doCloseFilesystem) Implements org.
| |
| setFormulasNotResults | back to summary |
|---|---|
| public void setFormulasNotResults(boolean formulasNotResults) Implements org. Should we return the formula itself, and not the result it produces? Default is false
| |
| setIncludeCellComments | back to summary |
|---|---|
| public void setIncludeCellComments(boolean includeComments) Implements org. Would control the inclusion of cell comments from the document, if we supported it
| |
| setIncludeHeadersFooters | back to summary |
|---|---|
| public void setIncludeHeadersFooters(boolean includeHeadersFooters) Implements org. Would control the inclusion of headers and footers from the document, if we supported it
| |
| setIncludeSheetNames | back to summary |
|---|---|
| public void setIncludeSheetNames(boolean includeSheetNames) Implements org. Should sheet names be included? Default is true
| |
| triggerExtraction | back to summary |
|---|---|
| private EventBasedExcelExtractor. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv FormatTrackingHSSFListener | |
| pack-priv final StringBuilder | |
| private int | |
| private boolean | |
| private int | |
| private final List | |
| private int | |
| private SSTRecord |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | processRecord(Record
the record to be processed record)Implements org. process an HSSF Record. |
| _ft | back to summary |
|---|---|
| pack-priv FormatTrackingHSSFListener _ft | |
| _text | back to summary |
|---|---|
| pack-priv final StringBuilder _text | |
| nextRow | back to summary |
|---|---|
| private int nextRow | |
| outputNextStringValue | back to summary |
|---|---|
| private boolean outputNextStringValue | |
| rowNum | back to summary |
|---|---|
| private int rowNum | |
| sheetNames | back to summary |
|---|---|
| private final List<String> sheetNames | |
| sheetNum | back to summary |
|---|---|
| private int sheetNum | |
| sstRecord | back to summary |
|---|---|
| private SSTRecord sstRecord | |
| TextListener | back to summary |
|---|---|
| public TextListener() | |
| processRecord | back to summary |
|---|---|
| public void processRecord(Record record) Implements org. Doc from org. process an HSSF Record. Called when a record occurs in an HSSF file.
| |