| 构造器和说明 |
|---|
FastcsvCsvReaderImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
char |
getFieldSeparator()
字段分割符, 默认 ','
|
char |
getTextDelimiter()
获取文本包装符, 默认 '"'
|
boolean |
isContainHeader()
是否包含header
|
boolean |
isErrorIfDifferentFieldCount()
如果csv数据含有不匹配的字段数,是否抛出异常, 默认false
|
boolean |
isSkipEmptyRow()
是否跳过空行
|
CsvReaderParser |
parse(java.io.File file)
默认UTF8,获取解析csv文件的核心类
|
CsvReaderParser |
parse(java.io.File file,
java.nio.charset.Charset charset)
获取解析csv文件的核心类
|
CsvReaderParser |
parse(java.nio.file.Path path)
默认UTF8,获取解析csv文件的核心类
|
CsvReaderParser |
parse(java.nio.file.Path path,
java.nio.charset.Charset charset)
获取解析csv文件的核心类
|
CsvReaderParser |
parse(java.io.Reader reader)
获取解析csv文件的核心类
|
CsvSheet |
read(java.io.File file)
默认UTF8读取csv文件
|
CsvSheet |
read(java.io.File file,
java.nio.charset.Charset charset)
读取csv文件
|
CsvSheet |
read(java.nio.file.Path path)
默认UTF8读取csv文件
|
CsvSheet |
read(java.nio.file.Path path,
java.nio.charset.Charset charset)
读取csv文件
|
CsvSheet |
read(java.io.Reader reader)
读取csv文件
|
void |
setContainHeader(boolean containHeader) |
void |
setErrorIfDifferentFieldCount(boolean errorIfDifferentFieldCount) |
void |
setFieldSeparator(char fieldSeparator) |
void |
setSkipEmptyRows(boolean skipEmptyRows) |
void |
setTextDelimiter(char textDelimiter) |
public char getFieldSeparator()
CsvReadergetFieldSeparator 在接口中 CsvReaderpublic char getTextDelimiter()
CsvReadergetTextDelimiter 在接口中 CsvReaderpublic boolean isContainHeader()
CsvReaderisContainHeader 在接口中 CsvReaderpublic boolean isSkipEmptyRow()
CsvReaderisSkipEmptyRow 在接口中 CsvReaderpublic boolean isErrorIfDifferentFieldCount()
CsvReaderisErrorIfDifferentFieldCount 在接口中 CsvReaderpublic void setFieldSeparator(char fieldSeparator)
public void setTextDelimiter(char textDelimiter)
public void setContainHeader(boolean containHeader)
public void setSkipEmptyRows(boolean skipEmptyRows)
public void setErrorIfDifferentFieldCount(boolean errorIfDifferentFieldCount)
public CsvSheet read(java.io.File file, java.nio.charset.Charset charset) throws java.io.IOException
CsvReaderpublic CsvSheet read(java.io.File file) throws java.io.IOException
CsvReaderpublic CsvSheet read(java.nio.file.Path path, java.nio.charset.Charset charset) throws java.io.IOException
CsvReaderpublic CsvSheet read(java.nio.file.Path path) throws java.io.IOException
CsvReaderpublic CsvSheet read(java.io.Reader reader) throws java.io.IOException
CsvReaderpublic CsvReaderParser parse(java.nio.file.Path path, java.nio.charset.Charset charset) throws java.io.IOException
CsvReaderparse 在接口中 CsvReaderpath - Pathcharset - 解析编码CsvReaderParserjava.io.IOException - I/O异常public CsvReaderParser parse(java.nio.file.Path path) throws java.io.IOException
CsvReaderparse 在接口中 CsvReaderpath - PathCsvReaderParserjava.io.IOException - I/O异常public CsvReaderParser parse(java.io.File file, java.nio.charset.Charset charset) throws java.io.IOException
CsvReaderparse 在接口中 CsvReaderfile - csv文件charset - 解析编码CsvReaderParserjava.io.IOException - I/O异常public CsvReaderParser parse(java.io.File file) throws java.io.IOException
CsvReaderparse 在接口中 CsvReaderfile - csv文件CsvReaderParserjava.io.IOException - I/O异常public CsvReaderParser parse(java.io.Reader reader) throws java.io.IOException
CsvReaderparse 在接口中 CsvReaderreader - ReaderCsvReaderParserjava.io.IOException - I/O异常