|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.extractor.OldExcelExtractor
public class OldExcelExtractor
A text extractor for old Excel files, which are too old for HSSFWorkbook to handle. This includes Excel 95, and very old (pre-OLE2) Excel files, such as Excel 4 files.
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 Summary | |
---|---|
OldExcelExtractor(DirectoryNode directory)
|
|
OldExcelExtractor(java.io.File f)
|
|
OldExcelExtractor(java.io.InputStream input)
|
|
OldExcelExtractor(NPOIFSFileSystem fs)
|
Method Summary | |
---|---|
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 |
java.lang.String |
getText()
Retrieves the text contents of the file, as best we can for these old file formats |
protected void |
handleNumericCell(java.lang.StringBuffer text,
double value)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldExcelExtractor(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public OldExcelExtractor(java.io.File f) throws java.io.IOException
java.io.IOException
public OldExcelExtractor(NPOIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public OldExcelExtractor(DirectoryNode directory) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public int getBiffVersion()
public int getFileType()
BOFRecord.TYPE_WORKSHEET
,
BOFRecord.TYPE_CHART
, BOFRecord.TYPE_EXCEL_4_MACRO
or BOFRecord.TYPE_WORKSPACE_FILE
public java.lang.String getText()
public void close()
close
in interface java.io.Closeable
protected void handleNumericCell(java.lang.StringBuffer text, double value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |