public class OldExcelExtractor extends Object implements Closeable
Returns much (but not all) of the textual content of the file, suitable for indexing by something like Apache Lucene, or used by Apache Tika, but not really intended for display to the user.
| Constructor and Description |
|---|
OldExcelExtractor(DirectoryNode directory) |
OldExcelExtractor(File f) |
OldExcelExtractor(InputStream input) |
OldExcelExtractor(POIFSFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBiffVersion()
The Biff version, largely corresponding to the Excel version
|
int |
getFileType()
The kind of the file, one of
BOFRecord.TYPE_WORKSHEET,
BOFRecord.TYPE_CHART, BOFRecord.TYPE_EXCEL_4_MACRO
or BOFRecord.TYPE_WORKSPACE_FILE |
String |
getText()
Retrieves the text contents of the file, as best we can
for these old file formats
|
static void |
main(String[] args) |
public OldExcelExtractor(InputStream input) throws IOException
IOExceptionpublic OldExcelExtractor(File f) throws IOException
IOExceptionpublic OldExcelExtractor(POIFSFileSystem fs) throws IOException
IOExceptionpublic OldExcelExtractor(DirectoryNode directory) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionpublic int getBiffVersion()
public int getFileType()
BOFRecord.TYPE_WORKSHEET,
BOFRecord.TYPE_CHART, BOFRecord.TYPE_EXCEL_4_MACRO
or BOFRecord.TYPE_WORKSPACE_FILEpublic String getText()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2010 - 2020 Adobe. All Rights Reserved