HSSFWorkbook or XSSFWorkbook),
by auto-detecting from the supplied input.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static Workbook | Returns: The created workbookIf an XSSFWorkbook or a HSSFWorkbook should be created xssf)Create a new empty Workbook, either XSSF or HSSF depending on the parameter |
| public static Workbook | Returns: The created workbookThe fs)POIFSFileSystem to read the document fromCreates a Workbook from the given POIFSFileSystem. |
| private static Workbook | Returns: The created WorkbookThe fs, String POIFSFileSystem to read the document fromThe password that should be used or null if no password is necessary. password)Creates a Workbook from the given POIFSFileSystem, which may be password protected. |
| public static Workbook | Returns: The created WorkbookThe root)DirectoryNode to start reading the document fromCreates a Workbook from the given DirectoryNode. |
| public static Workbook | Returns: The created WorkbookThe root, String DirectoryNode to start reading the document fromThe password that should be used or null if no password is necessary. password)Creates a Workbook from the given DirectoryNode, which may be password protected. |
| public static Workbook | Returns: The created WorkbookThe inp)InputStream to read data from.Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream. |
| public static Workbook | Returns: The created WorkbookThe inp, String InputStream to read data from.The password that should be used or null if no password is necessary. password)Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream, which may be password protected. |
| public static Workbook | |
| public static Workbook | Returns: The created WorkbookThe file to read data from. file, String The password that should be used or null if no password is necessary. password)Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable, and may be password protected Note that in order to properly release resources the Workbook should be closed after use. |
| public static Workbook | Returns: The created WorkbookThe file to read data from. file, String The password that should be used or null if no password is necessary. password, boolean If the Workbook should be opened in read-only mode to avoid writing back
changes when the document is closed. readOnly)Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable, and may be password protected Note that in order to properly release resources the Workbook should be closed after use. |
| public static void | |
| private static Workbook |
| provider | back to summary |
|---|---|
| private final List<WorkbookProvider> provider | |
| WorkbookFactory | back to summary |
|---|---|
| private WorkbookFactory() | |
| addProvider | back to summary |
|---|---|
| public static void addProvider(WorkbookProvider provider) | |
| create | back to summary |
|---|---|
| public static Workbook create(boolean xssf) throws IOException Create a new empty Workbook, either XSSF or HSSF depending on the parameter
| |
| create | back to summary |
|---|---|
| public static Workbook create(POIFSFileSystem fs) throws IOException Creates a Workbook from the given POIFSFileSystem. Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| private static Workbook create(final POIFSFileSystem fs, String password) throws IOException Creates a Workbook from the given POIFSFileSystem, which may be password protected. Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| public static Workbook create(final DirectoryNode root) throws IOException Creates a Workbook from the given DirectoryNode. Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| public static Workbook create(final DirectoryNode root, String password) throws IOException Creates a Workbook from the given DirectoryNode, which may be password protected. Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| public static Workbook create(InputStream inp) throws IOException, EncryptedDocumentException Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream. Your input stream MUST either support mark/reset, or
be wrapped as a Note that in order to properly release resources the
Workbook should be closed after use. Note also that loading
from an InputStream requires more memory than loading
from a File, so prefer
| |
| create | back to summary |
|---|---|
| public static Workbook create(InputStream inp, String password) throws IOException, EncryptedDocumentException Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream, which may be password protected. Your input stream MUST either support mark/reset, or
be wrapped as a Note that in order to properly release resources the
Workbook should be closed after use. Note also that loading
from an InputStream requires more memory than loading
from a File, so prefer
| |
| create | back to summary |
|---|---|
| public static Workbook create(File file) throws IOException, EncryptedDocumentException Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable. Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| public static Workbook create(File file, String password) throws IOException, EncryptedDocumentException Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable, and may be password protected Note that in order to properly release resources the Workbook should be closed after use.
| |
| create | back to summary |
|---|---|
| public static Workbook create(File file, String password, boolean readOnly) throws IOException, EncryptedDocumentException Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given File, which must exist and be readable, and may be password protected Note that in order to properly release resources the Workbook should be closed after use.
| |
| removeProvider | back to summary |
|---|---|
| public static void removeProvider(Class<? extends WorkbookProvider> provider) | |
| wp | back to summary |
|---|---|
| private static Workbook wp(FileMagic fm, WorkbookFactory. | |
| Modifier and Type | Method and Description |
|---|---|
| public Workbook |
| create | back to summary |
|---|---|
| public Workbook create(WorkbookProvider prov) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private static final WorkbookFactory |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final WorkbookFactory INSTANCE | |
| Singleton | back to summary |
|---|---|
| private Singleton() | |