| Package | Description |
|---|---|
| org.dromara.hutool.core.collection.iter | |
| org.dromara.hutool.core.io |
IO相关封装和工具类,包括Inputstream和OutputStream实现类,工具包括流工具IoUtil、文件工具FileUtil和Buffer工具BufferUtil
|
| org.dromara.hutool.core.io.resource |
针对ClassPath和文件中资源读取的封装,主要入口为工具类ResourceUtil
|
| org.dromara.hutool.core.text.split |
字符串切分封装和工具类
|
| Class and Description |
|---|
| ComputeIter
带有计算属性的遍历器
通过继承此抽象遍历器,实现 ComputeIter.computeNext()计算下一个节点,即可完成节点遍历当调用 ComputeIter.hasNext()时将此方法产生的节点缓存,直到调用ComputeIter.next()取出当无下一个节点时,须返回 null表示遍历结束 |
| CopiedIter |
| FilterIter |
| IterableIter |
| IterChain |
| ResettableIter |
| Class and Description |
|---|
| 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 and Description |
|---|
EnumerationIter
Enumeration对象转Iterator对象 |
| Class and Description |
|---|
| ComputeIter
带有计算属性的遍历器
通过继承此抽象遍历器,实现 ComputeIter.computeNext()计算下一个节点,即可完成节点遍历当调用 ComputeIter.hasNext()时将此方法产生的节点缓存,直到调用ComputeIter.next()取出当无下一个节点时,须返回 null表示遍历结束 |
Copyright © 2024. All rights reserved.