|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jxl.Workbook
|
+--jxl.read.biff.WorkbookParser
Parses the biff file passed in, and builds up an internal representation of the spreadsheet
| Field Summary | |
private int |
bofs
The number of open bofs |
private java.util.ArrayList |
boundsheets
The names of all the worksheets |
private File |
excelFile
The excel file |
private ExternalSheetRecord |
externSheet
The external sheet record. |
private Fonts |
fonts
The fonts used by this workbook |
private FormattingRecords |
formattingRecords
The xf records |
private SheetImpl |
lastSheet
The last sheet accessed |
private int |
lastSheetIndex
The index of the last sheet retrieved |
private MsoDrawingGroupRecord |
msoDrawingGroup
The Mso Drawing Group record for this workbook |
private java.util.HashMap |
namedRecords
The named records found in this workbook |
private boolean |
nineteenFour
Indicates whether or not the dates are based around the 1904 date system |
private WorkbookSettings |
settings
The workbook settings |
private SSTRecord |
sharedStrings
The shared string table |
private java.util.ArrayList |
sheets
The sheets contained in this workbook |
private java.util.ArrayList |
supbooks
The list of supporting workbooks - used by formulas |
private boolean |
wbProtected
Workbook protected flag |
private BOFRecord |
workbookBof
The bof record for this workbook |
| Fields inherited from class jxl.Workbook |
version |
| Constructor Summary | |
WorkbookParser(File f,
WorkbookSettings s)
Constructs this object from the raw excel data |
|
| Method Summary | |
(package private) void |
addSheet(Sheet s)
Adds the sheet to the end of the array |
void |
close()
Closes this workbook, and frees makes any memory allocated available for garbage collection |
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. |
(package private) 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 |
MsoDrawingGroupRecord |
getMsoDrawingGroupRecord()
Accessor for the MsoDrawingGroup, used by the WritableWorkbook when creating a copy of this |
NameRecord[] |
getNameRecords()
Accessor for the name records. |
int |
getNumberOfSheets()
Returns the number of sheets in 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 |
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 |
|
| Field Detail |
private File excelFile
private int bofs
private boolean nineteenFour
private SSTRecord sharedStrings
private java.util.ArrayList boundsheets
private FormattingRecords formattingRecords
private Fonts fonts
private java.util.ArrayList sheets
private SheetImpl lastSheet
private int lastSheetIndex
private java.util.HashMap namedRecords
private ExternalSheetRecord externSheet
private java.util.ArrayList supbooks
private BOFRecord workbookBof
private MsoDrawingGroupRecord msoDrawingGroup
private boolean wbProtected
private WorkbookSettings settings
| 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 getSheet(int index)
getSheet in class Workbookindex - the zero based index of the required sheetpublic Sheet getSheet(java.lang.String name)
getSheet in class Workbookname - the sheet nameint getExternalSheetIndex(int index)
index - the external sheet referencepublic java.lang.String getExternalSheetName(int index)
getExternalSheetName in interface ExternalSheetindex - the external sheet indexpublic int getNumberOfSheets()
getNumberOfSheets in class Workbookpublic void close()
close in class Workbookfinal void addSheet(Sheet s)
s - the sheet to add
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 findCellByName(java.lang.String name)
findCellByName in class Workbookthe - name of the cell/range to search forpublic Range[] findByName(java.lang.String name)
findByName in class Workbookthe - name of the cell/range to search forpublic 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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||