|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.Workbook
jxl.read.biff.WorkbookParser
Parses the biff file passed in, and builds up an internal representation of the spreadsheet
| Constructor Summary | |
WorkbookParser(File f,
WorkbookSettings s)
Constructs this object from the raw excel data |
|
| Method Summary | |
void |
close()
Closes this workbook, and frees makes any memory allocated available for garbage collection |
boolean |
containsMacros()
Accessor for the containsMacros |
Range[] |
findByName(java.lang.String name)
Gets the named range from this workbook. |
Cell |
findCellByName(java.lang.String name)
Gets the named cell from this workbook. |
ButtonPropertySetRecord |
getButtonPropertySet()
Accessor for the button property set, used during copying |
Cell |
getCell(java.lang.String loc)
Returns the cell for the specified location eg. |
CompoundFile |
getCompoundFile()
Accessor for the CompoundFile. |
CountryRecord |
getCountryRecord()
Accessor for the country record, using during copying |
DrawingGroup |
getDrawingGroup()
Accessor for the drawing group |
int |
getExternalSheetIndex(int index)
Package protected function which gets the real internal sheet index based upon the external sheet reference. |
int |
getExternalSheetIndex(java.lang.String sheetName)
Accessor/implementation method for the external sheet reference |
java.lang.String |
getExternalSheetName(int index)
Gets the name of the external sheet specified by the index |
ExternalSheetRecord |
getExternalSheetRecord()
Accessor for the externSheet, used by the WritableWorkbook when creating a copy of this |
Fonts |
getFonts()
Accessor for the fonts, used by the WritableWorkbook when creating a copy of this |
FormattingRecords |
getFormattingRecords()
Accessor for the formattingRecords, used by the WritableWorkbook when creating a copy of this |
int |
getLastExternalSheetIndex(int index)
Package protected function which gets the real internal sheet index based upon the external sheet reference. |
int |
getLastExternalSheetIndex(java.lang.String sheetName)
Accessor/implementation method for the external sheet reference |
java.lang.String |
getLastExternalSheetName(int index)
Gets the name of the external sheet specified by the index |
MsoDrawingGroupRecord |
getMsoDrawingGroupRecord()
Accessor for the MsoDrawingGroup, used by the WritableWorkbook when creating a copy of this |
java.lang.String |
getName(int index)
Gets the name at the specified index |
int |
getNameIndex(java.lang.String name)
Gets the index of the name record for the name |
NameRecord[] |
getNameRecords()
Accessor for the name records. |
int |
getNumberOfSheets()
Returns the number of sheets in this workbook |
java.lang.String[] |
getRangeNames()
Gets the named ranges |
Sheet |
getReadSheet(int index)
Interface method from WorkbookMethods - gets the specified sheet within this workbook |
WorkbookSettings |
getSettings()
Accessor for the settings |
Sheet |
getSheet(int index)
Gets the specified sheet within this workbook |
Sheet |
getSheet(java.lang.String name)
Gets the sheet with the specified name from within this workbook |
java.lang.String[] |
getSheetNames()
Gets the sheet names |
Sheet[] |
getSheets()
Gets the sheets within this workbook. |
SupbookRecord[] |
getSupbookRecords()
Accessor for the supbook records, used by the WritableWorkbook when creating a copy of this |
BOFRecord |
getWorkbookBof()
Method used when parsing formulas to make sure we are trying to parse a supported biff version |
boolean |
isProtected()
Determines whether the sheet is protected |
protected void |
parse()
Does the hard work of building up the object graph from the excel bytes |
| Methods inherited from class jxl.Workbook |
createWorkbook, createWorkbook, createWorkbook, createWorkbook, createWorkbook, createWorkbook, createWorkbook, createWorkbook, getVersion, getWorkbook, getWorkbook, getWorkbook, getWorkbook |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WorkbookParser(File f,
WorkbookSettings s)
f - the excel 97 biff files - the workbook settings| Method Detail |
public Sheet[] getSheets()
getSheets in class Workbookpublic Sheet getReadSheet(int index)
getReadSheet in interface WorkbookMethodsindex - the zero based index of the required sheet
public Sheet getSheet(int index)
getSheet in class Workbookindex - the zero based index of the required sheet
public Sheet getSheet(java.lang.String name)
getSheet in class Workbookname - the sheet name
public java.lang.String[] getSheetNames()
getSheetNames in class Workbookpublic int getExternalSheetIndex(int index)
getExternalSheetIndex in interface ExternalSheetindex - the external sheet reference
public int getLastExternalSheetIndex(int index)
getLastExternalSheetIndex in interface ExternalSheetindex - the external sheet reference
public java.lang.String getExternalSheetName(int index)
getExternalSheetName in interface ExternalSheetindex - the external sheet index
public java.lang.String getLastExternalSheetName(int index)
index - the external sheet index
public int getNumberOfSheets()
getNumberOfSheets in class Workbookpublic void close()
close in class Workbook
protected void parse()
throws BiffException,
PasswordException
parse in class WorkbookBiffException
PasswordException - if the workbook is password protectedpublic FormattingRecords getFormattingRecords()
public ExternalSheetRecord getExternalSheetRecord()
public MsoDrawingGroupRecord getMsoDrawingGroupRecord()
public SupbookRecord[] getSupbookRecords()
public NameRecord[] getNameRecords()
public Fonts getFonts()
public Cell getCell(java.lang.String loc)
getCell in class Workbookloc - the cell to retrieve
public Cell findCellByName(java.lang.String name)
findCellByName in class Workbookname - the name of the cell/range to search for
public Range[] findByName(java.lang.String name)
findByName in class Workbookname - the name to find
public java.lang.String[] getRangeNames()
getRangeNames in class Workbookpublic BOFRecord getWorkbookBof()
getWorkbookBof in interface ExternalSheetpublic boolean isProtected()
isProtected in class Workbookpublic WorkbookSettings getSettings()
public int getExternalSheetIndex(java.lang.String sheetName)
getExternalSheetIndex in interface ExternalSheetsheetName - the sheet name to look for
public int getLastExternalSheetIndex(java.lang.String sheetName)
getLastExternalSheetIndex in interface ExternalSheetsheetName - the sheet name to look for
public java.lang.String getName(int index)
getName in interface WorkbookMethodsindex - the index into the name table
public int getNameIndex(java.lang.String name)
getNameIndex in interface WorkbookMethodsname - the name to search for
public DrawingGroup getDrawingGroup()
public CompoundFile getCompoundFile()
public boolean containsMacros()
public ButtonPropertySetRecord getButtonPropertySet()
public CountryRecord getCountryRecord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||