|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--corpus.extractor.Extractor
Extractor is used to call ExcelaccessorRead or JExcelAPI. Once this is done, getWorkBook() can be called to get the WorkBook Object corresponding to the Excel file. A persistent copy will also be stored.
Constructor Summary | |
Extractor(java.lang.String workbookpath)
Create a new Extractor for a workbook |
Method Summary | |
static void |
batchExtract(java.lang.String path)
Given a path, this method will load all the excel spreadsheets in the folder. |
void |
done()
This must be called when the Extractor is no longer needed. |
protected void |
finalize()
A check to ensure excel is shutdown |
static WorkBook |
forceLoad(Extractor e,
java.lang.String path,
boolean closeWhenDone,
boolean api)
Reprocess the raw excel file into a workbook regardless of a serialised version on disk. |
WorkBook |
getWorkBook()
|
static void |
main(java.lang.String[] args)
Create an Extractor object and perform some test loads and saves. |
static WorkBook |
read(java.io.File f)
Given a java.io.File will attempt to read the WorkBook file from disk. |
void |
switchWorkbook(java.lang.String workbookname)
Use this if you want to change workbooks and have already used extractor. |
static void |
useJExcelRead()
|
static void |
useXLAccessor()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Extractor(java.lang.String workbookpath)
Method Detail |
public static void useJExcelRead()
public static void useXLAccessor()
public void switchWorkbook(java.lang.String workbookname)
public WorkBook getWorkBook()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void done()
public static void batchExtract(java.lang.String path)
public static WorkBook read(java.io.File f)
public static WorkBook forceLoad(Extractor e, java.lang.String path, boolean closeWhenDone, boolean api)
public static void main(java.lang.String[] args)
|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |