Enum Class ExcelDocument.ProviderType
java.lang.Object
java.lang.Enum<ExcelDocument.ProviderType>
com.northconcepts.datapipeline.excel.ExcelDocument.ProviderType
- All Implemented Interfaces:
Serializable,Comparable<ExcelDocument.ProviderType>,Constable
- Enclosing class:
ExcelDocument
Selects the Excel library (Apache POI or JXL) and workbook format an
ExcelDocument uses.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRead/Write .xls files using JExcel/JXL.Read/Write .xls files (Excel 2003) using Apache POI.Writes .xlsx files (Excel 2007+) using Apache POI's streaming API (SXSSF) and temporary files to reduce memory usage.Read/Write .xlsx files (Excel 2007+) using Apache POI.Reads .xlsx files (Excel 2007+) using Apache POI's streaming API (XSSF_SAX) to reduce memory usage.Read .xlsb (Binary Excel) files using Apache POI. -
Method Summary
Modifier and TypeMethodDescriptionabstract com.northconcepts.datapipeline.excel.ProviderCreates the provider implementing this type; eachExcelDocumentcalls it once when constructed.static ExcelDocument.ProviderTypeReturns the enum constant of this class with the specified name.static ExcelDocument.ProviderType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POI
Read/Write .xls files (Excel 2003) using Apache POI. -
POI_XSSF
Read/Write .xlsx files (Excel 2007+) using Apache POI. All data is held on the heap (in memory). -
POI_SXSSF
Writes .xlsx files (Excel 2007+) using Apache POI's streaming API (SXSSF) and temporary files to reduce memory usage. If used for reading, this provider reads usingPOI_XSSF, you should explicitly usePOI_XSSF_SAXwhere streaming reads are needed. -
POI_XSSF_SAX
-
JXL
Read/Write .xls files using JExcel/JXL. -
POI_XSSFB
Read .xlsb (Binary Excel) files using Apache POI.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
newProvider
public abstract com.northconcepts.datapipeline.excel.Provider newProvider()Creates the provider implementing this type; eachExcelDocumentcalls it once when constructed.
-