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 static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HSSFDataFormatter | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final HSSFWorkbook | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public HSSFWorkbook | getDocument()
Implements org. Return the underlying POIDocument |
| public HSSFWorkbook | |
| public String | getText()
Implements org. Retrieves the text contents of the file |
| public boolean | |
| public static void | |
| private static void | |
| 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 | setIncludeBlankCells(boolean
true if blank cells should be includedShould blank cells be output? |
| public void | setIncludeCellComments(boolean
true if cell comments should be includedImplements org. Should cell comments be included? |
| public void | setIncludeHeadersFooters(boolean
true if headers and footers should be includedImplements org. Should headers and footers be included in the output? |
| public void | setIncludeSheetNames(boolean
true if the sheet names should be includedImplements org. Should sheet names be included? |
| _formatter | back to summary |
|---|---|
| private final HSSFDataFormatter _formatter | |
| _includeBlankCells | back to summary |
|---|---|
| private boolean _includeBlankCells | |
| _includeCellComments | back to summary |
|---|---|
| private boolean _includeCellComments | |
| _includeHeadersFooters | back to summary |
|---|---|
| private boolean _includeHeadersFooters | |
| _includeSheetNames | back to summary |
|---|---|
| private boolean _includeSheetNames | |
| _shouldEvaluateFormulas | back to summary |
|---|---|
| private boolean _shouldEvaluateFormulas | |
| _wb | back to summary |
|---|---|
| private final HSSFWorkbook _wb | |
| doCloseFilesystem | back to summary |
|---|---|
| private boolean doCloseFilesystem | |
| ExcelExtractor | back to summary |
|---|---|
| public ExcelExtractor(HSSFWorkbook wb) | |
| ExcelExtractor | back to summary |
|---|---|
| public ExcelExtractor(POIFSFileSystem fs) throws IOException | |
| ExcelExtractor | back to summary |
|---|---|
| public ExcelExtractor(DirectoryNode dir) throws IOException | |
| _extractHeaderFooter | back to summary |
|---|---|
| public static String _extractHeaderFooter(HeaderFooter hf) | |
| getDocument | back to summary |
|---|---|
| public HSSFWorkbook getDocument() Implements org. Doc from org. Return the underlying POIDocument
| |
| getFilesystem | back to summary |
|---|---|
| public HSSFWorkbook getFilesystem() Implements org.
| |
| getText | back to summary |
|---|---|
| public String getText() Implements org. Doc from org. Retrieves the text contents of the file | |
| isCloseFilesystem | back to summary |
|---|---|
| public boolean isCloseFilesystem() Implements org.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException Command line extractor.
| |
| printUsageMessage | back to summary |
|---|---|
| private static void printUsageMessage(PrintStream ps) | |
| setCloseFilesystem | back to summary |
|---|---|
| public void setCloseFilesystem(boolean doCloseFilesystem) Implements org.
| |
| setFormulasNotResults | back to summary |
|---|---|
| public void setFormulasNotResults(boolean formulasNotResults) Implements org. Doc from org. Should we return the formula itself, and not the result it produces? Default is false
| |
| setIncludeBlankCells | back to summary |
|---|---|
| public void setIncludeBlankCells(boolean includeBlankCells) Should blank cells be output? Default is to only output cells that are present in the file and are non-blank.
| |
| setIncludeCellComments | back to summary |
|---|---|
| public void setIncludeCellComments(boolean includeCellComments) Implements org. Doc from org. Should cell comments be included? Default is false
| |
| setIncludeHeadersFooters | back to summary |
|---|---|
| public void setIncludeHeadersFooters(boolean includeHeadersFooters) Implements org. Doc from org. Should headers and footers be included in the output? Default is true
| |
| setIncludeSheetNames | back to summary |
|---|---|
| public void setIncludeSheetNames(boolean includeSheetNames) Implements org. Doc from org. Should sheet names be included? Default is true
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final File | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public File | |
| public boolean | |
| private static boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| _evaluateFormulas | back to summary |
|---|---|
| private final boolean _evaluateFormulas | |
| _headersFooters | back to summary |
|---|---|
| private final boolean _headersFooters | |
| _inputFile | back to summary |
|---|---|
| private final File _inputFile | |
| _requestHelp | back to summary |
|---|---|
| private final boolean _requestHelp | |
| _showBlankCells | back to summary |
|---|---|
| private final boolean _showBlankCells | |
| _showCellComments | back to summary |
|---|---|
| private final boolean _showCellComments | |
| _showSheetNames | back to summary |
|---|---|
| private final boolean _showSheetNames | |
| CommandArgs | back to summary |
|---|---|
| public CommandArgs(String[] args) throws CommandParseException | |
| getInputFile | back to summary |
|---|---|
| public File getInputFile() | |
| isRequestHelp | back to summary |
|---|---|
| public boolean isRequestHelp() | |
| parseBoolArg | back to summary |
|---|---|
| private static boolean parseBoolArg(String[] args, int i) throws CommandParseException | |
| shouldEvaluateFormulas | back to summary |
|---|---|
| public boolean shouldEvaluateFormulas() | |
| shouldIncludeHeadersFooters | back to summary |
|---|---|
| public boolean shouldIncludeHeadersFooters() | |
| shouldShowBlankCells | back to summary |
|---|---|
| public boolean shouldShowBlankCells() | |
| shouldShowCellComments | back to summary |
|---|---|
| public boolean shouldShowCellComments() | |
| shouldShowSheetNames | back to summary |
|---|---|
| public boolean shouldShowSheetNames() | |
| Access | Constructor and Description |
|---|---|
| public |
| CommandParseException | back to summary |
|---|---|
| public CommandParseException(String msg) | |