|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ss.usermodel.WorkbookFactory
public class WorkbookFactory
Factory for creating the appropriate kind of Workbook (be it HSSFWorkbook or XSSFWorkbook), from the given input
Constructor Summary | |
---|---|
WorkbookFactory()
|
Method Summary | |
---|---|
static Workbook |
create(java.io.File file)
Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable. |
static Workbook |
create(java.io.InputStream inp)
Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream. |
static Workbook |
create(NPOIFSFileSystem fs)
Creates an HSSFWorkbook from the given NPOIFSFileSystem |
static Workbook |
create(OPCPackage pkg)
Creates an XSSFWorkbook from the given OOXML Package |
static Workbook |
create(POIFSFileSystem fs)
Creates an HSSFWorkbook from the given POIFSFileSystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkbookFactory()
Method Detail |
---|
public static Workbook create(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public static Workbook create(NPOIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public static Workbook create(OPCPackage pkg) throws java.io.IOException
java.io.IOException
public static Workbook create(java.io.InputStream inp) throws java.io.IOException, InvalidFormatException
PushbackInputStream
!
java.io.IOException
InvalidFormatException
public static Workbook create(java.io.File file) throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |