| 程序包 | 说明 |
|---|---|
| cn.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
| cn.hutool.core.text.csv |
提供CSV文件读写的封装,入口为CsvUtil
规范见:https://datatracker.ietf.org/doc/html/rfc4180 |
| cn.hutool.core.text.split |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LineIter
将Reader包装为一个按照行读取的Iterator
此对象遍历结束后,应关闭之,推荐使用方式: LineIterator it = null; try { it = new LineIterator(reader); while (it.hasNext()) { String line = it.nextLine(); // do something with line } } finally { it.close(); } 此类来自于Apache Commons io |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CsvParser
CSV行解析器,参考:FastCSV
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SplitIter
|
Copyright © 2022. All rights reserved.