Package | Description |
---|---|
org.dromara.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
org.dromara.hutool.core.collection.set |
Set 相关封装 |
org.dromara.hutool.core.io.watch |
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
|
org.dromara.hutool.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了:
1.
|
org.dromara.hutool.crypto.digest |
摘要加密算法实现,入口为DigestUtil
|
org.dromara.hutool.crypto.digest.mac |
MAC,全称为“Message Authentication Code”,中文名“消息鉴别码”。
|
org.dromara.hutool.db.ds |
数据源封装,对各类数据库连接池的封装
数据库连接池使用工厂方法模式,当有新增连接池时,实现 DSFactory 即可。 |
org.dromara.hutool.db.meta |
JDBC数据表元数据信息封装,包括表结构、列信息的封装,入口为MetaUtil
|
org.dromara.hutool.db.sql |
SQL语句和Statement构建封装
|
org.dromara.hutool.http.client.engine.httpclient4 |
Apache HttpClient 4.x实现
文档见:https://hc.apache.org/httpcomponents-client-4.5.x/index.html |
org.dromara.hutool.http.client.engine.httpclient5 |
Apache HttpClient 5.1.x实现
文档见:https://hc.apache.org/httpcomponents-client-5.1.x/index.html |
org.dromara.hutool.http.client.engine.jdk |
基于JDK的HttpUrlConnection封装的HTTP客户端
|
org.dromara.hutool.http.client.engine.okhttp |
OKHttp3封装
文档见:https://square.github.io/okhttp/ |
org.dromara.hutool.json |
JSON(JavaScript Object Notation JavaScript对象表示法)封装
规范见:https://www.rfc-editor.org/rfc/rfc8259 包含以下组件: JSONObject: 使用键值对表示的数据类型,使用"{}"包围 JSONArray: 使用列表表示的数据类型,使用"[]"包围 JSONPrimitive:表示boolean、String、Number等原始类型 JSON封装主要包括JSON表示和JSON转换:
<-----JSONMapper----- <---JSONParser----
Java对象 <====================> JSON对象 <=================> JSON字符串
-----JSONMapper-----> ---JSONWriter---->
当然,为了高效转换,如果没有自定义需求,Java对象可以不通过JSON对象与JSON字符串转换:
JSONTokener:JSON字符串底层解析器,通过Stream方式读取JSON字符串并对不同字段自定义处理。 |
org.dromara.hutool.poi.csv |
提供CSV文件读写的封装,入口为CsvUtil
规范见:https://datatracker.ietf.org/doc/html/rfc4180 |
Modifier and Type | Class and Description |
---|---|
class |
BoundedList<E>
指定边界大小的List
通过指定边界,可以限制List的最大容量 |
class |
ListWrapper<E>
列表包装类
提供列表包装,用于在执行列表方法前后自定义处理逻辑 |
Modifier and Type | Class and Description |
---|---|
class |
SetWrapper<E>
Set包装类
提供列表包装,用于在执行列表方法前后自定义处理逻辑 |
Modifier and Type | Class and Description |
---|---|
class |
WatchServiceWrapper
WatchEvent 包装类,提供可选的监听事件和监听选项,实现方法包括:
注册:WatchServiceWrapper.registerPath(Path, int) 注册需要监听的路径。 |
Modifier and Type | Class and Description |
---|---|
class |
JceCipher
提供
Cipher 的方法包装 |
Modifier and Type | Class and Description |
---|---|
class |
Digester
摘要算法
注意:此对象实例化后为非线程安全! |
class |
MD5
MD5算法
|
class |
SM3
国密SM3杂凑(摘要)算法
国密算法包括:
非对称加密和签名:SM2,asymmetric
摘要签名算法:SM3,digest
对称加密:SM4,symmetric
|
Modifier and Type | Class and Description |
---|---|
class |
BCHMacEngine
BouncyCastle的HMAC算法实现引擎,使用
Mac 实现摘要当引入BouncyCastle库时自动使用其作为Provider |
class |
BCMacEngine
BouncyCastle的MAC算法实现引擎,使用
Mac 实现摘要当引入BouncyCastle库时自动使用其作为Provider |
class |
CBCBlockCipherMacEngine
CBCBlockCipherMac 实现的MAC算法,使用CBC Block方式 |
class |
JCEMacEngine
JDK提供的的MAC算法实现引擎,使用
Mac 实现摘要当引入BouncyCastle库时自动使用其作为Provider |
class |
SM4MacEngine
SM4算法的MAC引擎实现
|
Modifier and Type | Class and Description |
---|---|
class |
DSWrapper
DataSource 数据源实现包装,通过包装,提供基本功能外的额外功能和参数持有,包括:
1. |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseMetaDataWrapper
用于封装DatabaseMetaData对象,并提供特定数据库的元数据访问。
|
Modifier and Type | Class and Description |
---|---|
class |
StatementWrapper
PreparedStatement 包装类,用于添加拦截方法功能拦截方法包括: 1. |
Modifier and Type | Class and Description |
---|---|
class |
HttpClient4Cookie
HttpClient4 Cookie实现
|
class |
HttpClient4CookieStore
Apache HttpClient4的Cookie存储器实现
|
class |
HttpClient4Response
HttpClient响应包装
通过包装 CloseableHttpResponse ,实现获取响应状态码、响应头、响应体等内容 |
Modifier and Type | Class and Description |
---|---|
class |
HttpClient5Cookie
HttpClient5 Cookie实现
|
class |
HttpClient5CookieStore
HttpClient5 Cookie存储器实现
|
class |
HttpClient5Response
HttpClient响应包装
通过包装 CloseableHttpResponse ,实现获取响应状态码、响应头、响应体等内容 |
Modifier and Type | Class and Description |
---|---|
class |
JdkCookie
JDK Cookie实现
|
class |
JdkCookieStore
JDK CookieStore实现
|
Modifier and Type | Class and Description |
---|---|
class |
OkCookie
OkHttp Cookie实现
|
Modifier and Type | Class and Description |
---|---|
class |
JSONArray
JSON数组
JSON数组是表示中括号括住的数据表现形式 对应的JSON字符串格格式例如: ["a", "b", "c", 12] |
Modifier and Type | Class and Description |
---|---|
class |
CsvRow
CSV中一行的表示
|
class |
CsvTokener
CSV解析器,用于解析CSV文件
|
Copyright © 2025. All rights reserved.