public static class PoijiOptions.PoijiOptionsBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
PoijiOptions |
build() |
PoijiOptions.PoijiOptionsBuilder |
dateLenient(boolean dateLenient)
If the simple date format is lenient, use to
set how strict the date formatting must be, defaults to lenient false.
|
PoijiOptions.PoijiOptionsBuilder |
datePattern(String datePattern)
set date pattern, default date format is "dd/M/yyyy" for
java.util.Date
|
PoijiOptions.PoijiOptionsBuilder |
dateRegex(String dateRegex)
Date regex, if would like to specify a regex patter the date must be
in, e.g.\\d{2}/\\d{1}/\\d{4}.
|
PoijiOptions.PoijiOptionsBuilder |
dateTimeFormatter(DateTimeFormatter dateTimeFormatter)
set a date time formatter, default date time formatter is "dd/M/yyyy"
for java.time.LocalDate
|
PoijiOptions.PoijiOptionsBuilder |
ignoreHiddenSheets(boolean ignoreHiddenSheets)
Ignore hidden sheets
|
PoijiOptions.PoijiOptionsBuilder |
password(String password)
set password for encrypted excel file, Default is null
|
PoijiOptions.PoijiOptionsBuilder |
preferNullOverDefault(boolean preferNullOverDefault)
set whether or not to use null instead of default values for Integer,
Double, Float, Long, String and java.util.Date types.
|
static PoijiOptions.PoijiOptionsBuilder |
settings() |
static PoijiOptions.PoijiOptionsBuilder |
settings(int skip)
Skip the n rows of the excel data.
|
PoijiOptions.PoijiOptionsBuilder |
sheetIndex(int sheetIndex)
set sheet index, default is 0
|
PoijiOptions.PoijiOptionsBuilder |
skip(int skip)
skip number of row
|
PoijiOptions.PoijiOptionsBuilder |
trimCellValue(boolean trimCellValue)
Trim cell value
|
public PoijiOptions build()
public static PoijiOptions.PoijiOptionsBuilder settings()
public PoijiOptions.PoijiOptionsBuilder dateTimeFormatter(DateTimeFormatter dateTimeFormatter)
dateTimeFormatter - date time formatterpublic PoijiOptions.PoijiOptionsBuilder datePattern(String datePattern)
datePattern - date time formatterpublic PoijiOptions.PoijiOptionsBuilder preferNullOverDefault(boolean preferNullOverDefault)
preferNullOverDefault - booleanpublic PoijiOptions.PoijiOptionsBuilder skip(int skip)
skip - numberpublic PoijiOptions.PoijiOptionsBuilder sheetIndex(int sheetIndex)
sheetIndex - numberpublic static PoijiOptions.PoijiOptionsBuilder settings(int skip)
skip - ignored row numberpublic PoijiOptions.PoijiOptionsBuilder password(String password)
password - public PoijiOptions.PoijiOptionsBuilder ignoreHiddenSheets(boolean ignoreHiddenSheets)
ignoreHiddenSheets - whether or not to ignore any hidden sheets
in the work book.public PoijiOptions.PoijiOptionsBuilder trimCellValue(boolean trimCellValue)
trimCellValue - trim the cell value before processing work book.public PoijiOptions.PoijiOptionsBuilder dateRegex(String dateRegex)
dateRegex - date regex patternpublic PoijiOptions.PoijiOptionsBuilder dateLenient(boolean dateLenient)
dateLenient - true or falseCopyright © 2017–2018. All rights reserved.