public final class CsvParser extends Object implements Closeable, Serializable
| 构造器和说明 |
|---|
CsvParser(Reader reader,
CsvReadConfig config)
CSV解析器
|
public CsvParser(Reader reader, CsvReadConfig config)
reader - Readerconfig - 配置,null则为默认配置public List<String> getHeader()
IllegalStateException - 如果不解析头部或者没有调用nextRow()方法public CsvRow nextRow() throws IORuntimeException
IORuntimeException - IO读取异常public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2020. All rights reserved.