| 程序包 | 说明 |
|---|---|
| cn.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
| cn.hutool.core.img |
图像处理相关工具类封装
|
| cn.hutool.core.io |
IO相关封装和工具类,包括Inputstream和OutputStream实现类,工具包括流工具IoUtil、文件工具FileUtil和Buffer工具BufferUtil
|
| cn.hutool.core.io.file |
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
|
| cn.hutool.core.io.resource |
针对ClassPath和文件中资源读取的封装,主要入口为工具类ResourceUtil
|
| cn.hutool.core.net |
网络相关工具
|
| cn.hutool.core.text.csv |
提供CSV文件读写的封装,入口为CsvUtil
|
| cn.hutool.core.util |
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| 类和说明 |
|---|
| BOMInputStream
读取带BOM头的流内容,
getCharset()方法调用后会得到BOM头的编码,且会去除BOM头BOM定义:http://www.unicode.org/unicode/faq/utf_bom.html 00 00 FE FF = UTF-32, big-endian FF FE 00 00 = UTF-32, little-endian EF BB BF = UTF-8 FE FF = UTF-16, big-endian FF FE = UTF-16, little-endian 使用:
String enc = "UTF-8"; // or NULL to use systemdefault
参考: http://akini.mbnet.fi/java/unicodereader/UnicodeInputStream.java.txt |
| FastByteArrayOutputStream
基于快速缓冲FastByteBuffer的OutputStream,随着数据的增长自动扩充缓冲区
可以通过
FastByteArrayOutputStream.toByteArray()和 FastByteArrayOutputStream.toString()来获取数据
FastByteArrayOutputStream.close()方法无任何效果,当流被关闭后不会抛出IOException
这种设计避免重新分配内存块而是分配新增的缓冲区,缓冲区不会被GC,数据也不会被拷贝到其他缓冲区。 |
| FastByteBuffer
代码移植自blade
快速缓冲,将数据存放在缓冲集中,取代以往的单一数组 |
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| LineHandler
行处理器
|
| NullOutputStream
此OutputStream写出数据到/dev/null,既忽略所有数据
来自 Apache Commons io |
| StreamProgress
Stream进度条
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| LineHandler
行处理器
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
| 类和说明 |
|---|
| IORuntimeException
IO运行时异常,常用于对IOException的包装
|
Copyright © 2019. All rights reserved.