@Internal public class HSSFWorkbookFactory extends java.lang.Object implements WorkbookProvider
WorkbookFactory.create(java.io.File)
and similarConstructor and Description |
---|
HSSFWorkbookFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(FileMagic fm) |
HSSFWorkbook |
create()
Create a new empty Workbook
|
HSSFWorkbook |
create(DirectoryNode root,
java.lang.String password)
Creates a HSSFWorkbook from the given DirectoryNode
|
Workbook |
create(java.io.File file,
java.lang.String password,
boolean readOnly) |
Workbook |
create(java.io.InputStream inp) |
Workbook |
create(java.io.InputStream inp,
java.lang.String password) |
static HSSFWorkbook |
createWorkbook(POIFSFileSystem fs)
Creates a HSSFWorkbook from the given
POIFSFileSystem |
public boolean accepts(FileMagic fm)
accepts
in interface WorkbookProvider
public HSSFWorkbook create()
create
in interface WorkbookProvider
public static HSSFWorkbook createWorkbook(POIFSFileSystem fs) throws java.io.IOException
POIFSFileSystem
Note that in order to properly release resources the Workbook should be closed after use.
java.io.IOException
public HSSFWorkbook create(DirectoryNode root, java.lang.String password) throws java.io.IOException
Note that in order to properly release resources the Workbook should be closed after use.
create
in interface WorkbookProvider
java.io.IOException
public Workbook create(java.io.InputStream inp) throws java.io.IOException
create
in interface WorkbookProvider
java.io.IOException
public Workbook create(java.io.InputStream inp, java.lang.String password) throws java.io.IOException
create
in interface WorkbookProvider
java.io.IOException
public Workbook create(java.io.File file, java.lang.String password, boolean readOnly) throws java.io.IOException
create
in interface WorkbookProvider
java.io.IOException
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.