|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.Workbook
Represents a Workbook. Provides a handle into the individual sheets
Field Summary | |
private static java.lang.String |
version
The current version of the software |
Constructor Summary | |
protected |
Workbook()
The constructor |
Method Summary | |
abstract void |
close()
Closes this workbook, and frees makes any memory allocated available for garbage collection |
static WritableWorkbook |
createWorkbook(java.io.File file)
Creates a writable workbook with the given file name |
static WritableWorkbook |
createWorkbook(java.io.File file,
Workbook in)
Creates a writable workbook with the given filename as a copy of the workbook passed in. |
static WritableWorkbook |
createWorkbook(java.io.File file,
WorkbookSettings ws)
Creates a writable workbook with the given file name |
static WritableWorkbook |
createWorkbook(java.io.File file,
Workbook in,
WorkbookSettings ws)
Creates a writable workbook with the given filename as a copy of the workbook passed in. |
static WritableWorkbook |
createWorkbook(java.io.OutputStream os)
Creates a writable workbook. |
static WritableWorkbook |
createWorkbook(java.io.OutputStream os,
Workbook in)
Creates a writable workbook as a copy of the workbook passed in. |
static WritableWorkbook |
createWorkbook(java.io.OutputStream os,
WorkbookSettings ws)
Creates a writable workbook. |
static WritableWorkbook |
createWorkbook(java.io.OutputStream os,
Workbook in,
WorkbookSettings ws)
Creates a writable workbook as a copy of the workbook passed in. |
abstract Range[] |
findByName(java.lang.String name)
Gets the named range from this workbook. |
abstract Cell |
findCellByName(java.lang.String name)
Gets the named cell from this workbook. |
abstract int |
getNumberOfSheets()
Returns the number of sheets in this workbook |
abstract Sheet |
getSheet(int index)
Gets the specified sheet within this workbook As described in the accompanying technical notes, each call to getSheet forces a reread of the sheet (for memory reasons). |
abstract Sheet |
getSheet(java.lang.String name)
Gets the sheet with the specified name from within this workbook. |
abstract Sheet[] |
getSheets()
Gets the sheets within this workbook. |
static java.lang.String |
getVersion()
Accessor for the software version |
static Workbook |
getWorkbook(java.io.File file)
A factory method which takes in an excel file and reads in the contents. |
static Workbook |
getWorkbook(java.io.File file,
WorkbookSettings ws)
A factory method which takes in an excel file and reads in the contents. |
static Workbook |
getWorkbook(java.io.InputStream is)
A factory method which takes in an excel file and reads in the contents. |
static Workbook |
getWorkbook(java.io.InputStream is,
WorkbookSettings ws)
A factory method which takes in an excel file and reads in the contents. |
abstract boolean |
isProtected()
Determines whether the sheet is protected |
protected abstract void |
parse()
Parses the excel file. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final java.lang.String version
Constructor Detail |
protected Workbook()
Method Detail |
public abstract Sheet[] getSheets()
public abstract Sheet getSheet(int index) throws java.lang.IndexOutOfBoundsException
index
- the zero based index of the reQuired sheetIndexOutOfBoundException
- when index refers to a non-existent
sheetpublic abstract Sheet getSheet(java.lang.String name)
name
- the sheet namepublic static java.lang.String getVersion()
public abstract int getNumberOfSheets()
public abstract Cell findCellByName(java.lang.String name)
name
- the name of the cell/range to search forpublic abstract Range[] findByName(java.lang.String name)
name
- the name of the cell/range to search forpublic abstract boolean isProtected()
protected abstract void parse() throws BiffException, PasswordException
BiffException
- PasswordException
- public abstract void close()
public static Workbook getWorkbook(java.io.File file) throws java.io.IOException, BiffException
file
- the excel 97 spreadsheet to parsejava.io.IOException
- BiffException
- public static Workbook getWorkbook(java.io.File file, WorkbookSettings ws) throws java.io.IOException, BiffException
file
- the excel 97 spreadsheet to parsews
- the settings for the workbookjava.io.IOException
- BiffException
- public static Workbook getWorkbook(java.io.InputStream is) throws java.io.IOException, BiffException
is
- an open stream which is the the excel 97 spreadsheet to parsejava.io.IOException
- BiffException
- public static Workbook getWorkbook(java.io.InputStream is, WorkbookSettings ws) throws java.io.IOException, BiffException
is
- an open stream which is the the excel 97 spreadsheet to parsews
- the settings for the workbookjava.io.IOException
- BiffException
- public static WritableWorkbook createWorkbook(java.io.File file) throws java.io.IOException
public static WritableWorkbook createWorkbook(java.io.File file, WorkbookSettings ws) throws java.io.IOException
ws
- the global workbook settingspublic static WritableWorkbook createWorkbook(java.io.File file, Workbook in) throws java.io.IOException
file
- the output file for the copyin
- the workbook to copypublic static WritableWorkbook createWorkbook(java.io.File file, Workbook in, WorkbookSettings ws) throws java.io.IOException
file
- the output file for the copyin
- the workbook to copyws
- the configuration for this workbookpublic static WritableWorkbook createWorkbook(java.io.OutputStream os, Workbook in) throws java.io.IOException
file
- the output file for the copyin
- the workbook to copypublic static WritableWorkbook createWorkbook(java.io.OutputStream os, Workbook in, WorkbookSettings ws) throws java.io.IOException
file
- the output file for the copyin
- the workbook to copyws
- the configuration for this workbookpublic static WritableWorkbook createWorkbook(java.io.OutputStream os) throws java.io.IOException
os
- the output streampublic static WritableWorkbook createWorkbook(java.io.OutputStream os, WorkbookSettings ws) throws java.io.IOException
os
- the output streamws
- the configuration for this workbook
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |