public class CsvReadConfig extends CsvConfig implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
containsHeader
是否首行做为标题行,默认false
|
protected boolean |
errorOnDifferentFieldCount
每行字段个数不同时是否抛出异常,默认false
|
protected boolean |
skipEmptyRows
是否跳过空白行,默认true
|
commentCharacter, fieldSeparator, textDelimiter
Constructor and Description |
---|
CsvReadConfig() |
Modifier and Type | Method and Description |
---|---|
static CsvReadConfig |
defaultConfig()
默认配置
|
void |
setContainsHeader(boolean containsHeader)
设置是否首行做为标题行,默认false
|
void |
setErrorOnDifferentFieldCount(boolean errorOnDifferentFieldCount)
设置每行字段个数不同时是否抛出异常,默认false
|
void |
setSkipEmptyRows(boolean skipEmptyRows)
设置是否跳过空白行,默认true
|
setCommentCharacter, setFieldSeparator, setTextDelimiter
protected boolean containsHeader
protected boolean skipEmptyRows
protected boolean errorOnDifferentFieldCount
public static CsvReadConfig defaultConfig()
public void setContainsHeader(boolean containsHeader)
containsHeader
- 是否首行做为标题行,默认falsepublic void setSkipEmptyRows(boolean skipEmptyRows)
skipEmptyRows
- 是否跳过空白行,默认truepublic void setErrorOnDifferentFieldCount(boolean errorOnDifferentFieldCount)
errorOnDifferentFieldCount
- 每行字段个数不同时是否抛出异常,默认falseCopyright © 2021. All rights reserved.