Package | Description |
---|---|
org.dromara.hutool.core.array |
提供数组相关封装
|
org.dromara.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
org.dromara.hutool.core.collection.set |
Set 相关封装 |
org.dromara.hutool.core.io |
IO相关封装和工具类,包括Inputstream和OutputStream实现类,工具包括流工具IoUtil、文件工具FileUtil和Buffer工具BufferUtil
|
org.dromara.hutool.core.io.file |
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
|
org.dromara.hutool.core.io.watch |
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
|
org.dromara.hutool.core.lang.wrapper |
提供包装对象的抽象
通过包装接口,实现装饰模式或代理模式,以增强或目标对象功能。 |
org.dromara.hutool.core.map |
Map相关封装,提供特殊Map实现以及Map工具MapUtil
|
org.dromara.hutool.core.map.multi |
多参数类型的Map实现,包括集合类型值的MultiValueMap和Table
MultiValueMap:一个键对应多个值的集合的实现,类似于树的结构。 |
org.dromara.hutool.core.pool |
对象池封装实现
整体参考了: https://github.com/DanielYWoo/fast-object-pool/ https://github.com/apache/commons-pool |
org.dromara.hutool.core.pool.partition |
基于分区的对象池实现,参考:https://github.com/DanielYWoo/fast-object-pool
|
org.dromara.hutool.core.thread |
提供线程及高并发封装,入口为ThreadUtil
|
org.dromara.hutool.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了:
1.
|
org.dromara.hutool.crypto.bc |
BouncyCastle库相关工具封装
|
org.dromara.hutool.crypto.digest |
摘要加密算法实现,入口为DigestUtil
|
org.dromara.hutool.crypto.digest.mac |
MAC,全称为“Message Authentication Code”,中文名“消息鉴别码”。
|
org.dromara.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
|
org.dromara.hutool.db.ds |
数据源封装,对各类数据库连接池的封装
数据库连接池使用工厂方法模式,当有新增连接池时,实现 DSFactory 即可。 |
org.dromara.hutool.db.ds.pooled |
Hutool对连接池的简单实现
|
org.dromara.hutool.db.meta |
JDBC数据表元数据信息封装,包括表结构、列信息的封装,入口为MetaUtil
|
org.dromara.hutool.db.sql |
SQL语句和Statement构建封装
|
org.dromara.hutool.extra.ssh |
Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
|
org.dromara.hutool.extra.ssh.engine.ganymed |
Ganymed-SSH2(https://www.ganymed.ethz.ch/ssh2/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.jsch |
Jsch(http://www.jcraft.com/jsch/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.mina |
Apache MINA SSHD(https://mina.apache.org/sshd-project/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.sshj |
SSH 引擎封装
|
org.dromara.hutool.extra.template.engine |
第三方模板引擎实现
|
org.dromara.hutool.extra.template.engine.beetl |
Beetl实现,模板引擎介绍见:http://ibeetl.com/
|
org.dromara.hutool.extra.template.engine.enjoy |
Jfinal家的Enjoy模板引擎实现,见:https://jfinal.com/doc/6-1
|
org.dromara.hutool.extra.template.engine.freemarker |
Freemarker实现
见:https://freemarker.apache.org/ |
org.dromara.hutool.extra.template.engine.jetbrick |
jetbrick-template实现,模板引擎介绍见:https://github.com/subchen/jetbrick-template-2x
|
org.dromara.hutool.extra.template.engine.jte |
jte实现
见:https://jte.gg/ |
org.dromara.hutool.extra.template.engine.pebble |
pebble template实现,模板引擎介绍见:https://github.com/PebbleTemplates/pebble
|
org.dromara.hutool.extra.template.engine.rythm |
Rythm实现,见:http://www.rythmengine.org/
|
org.dromara.hutool.extra.template.engine.thymeleaf |
Thymeleaf实现,见:https://www.thymeleaf.org/
|
org.dromara.hutool.extra.template.engine.velocity |
Velocity实现
见:http://velocity.apache.org/ |
org.dromara.hutool.extra.template.engine.wit |
Wit实现,见:http://zqq90.github.io/webit-script/
|
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.http.server.engine.sun |
HttpServer 引擎实现包 |
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.json.engine.gson |
GSON引擎实现
项目:https://github.com/google/gson |
org.dromara.hutool.json.engine.jackson |
Jackson引擎实现
https://github.com/FasterXML/jackson |
org.dromara.hutool.json.engine.moshi |
Moshi引擎实现
https://github.com/square/moshi |
org.dromara.hutool.json.reader |
JSON读取和解析,主要解析字符串、流等JSON字符串为
JSON 。 |
org.dromara.hutool.json.xml |
JSON与XML相互转换封装,基于json.org官方库改造
|
org.dromara.hutool.poi.csv |
提供CSV文件读写的封装,入口为CsvUtil
规范见:https://datatracker.ietf.org/doc/html/rfc4180 |
Modifier and Type | Class and Description |
---|---|
class |
ArrayWrapper<A,E>
数组包装,提供一系列数组方法
|
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 |
BomReader
读取带BOM头的流内容的Reader,如果非bom的流或无法识别的编码,则默认UTF-8
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 使用:
FileInputStream fis = new FileInputStream(file); |
class |
LineReader
行读取器,类似于BufferedInputStream,支持多行转义,规则如下:
支持'\n'和'\r\n'两种换行符,不支持'\r'换行符 如果想读取转义符,必须定义为'\\' 多行转义后的换行符和空格都会被忽略 例子: a=1\ 2 读出后就是 a=12 |
class |
ReaderWrapper
Reader 包装 |
Modifier and Type | Class and Description |
---|---|
class |
FileReader
文件读取器
|
class |
FileWrapper
文件包装器,扩展文件对象
|
class |
FileWriter
文件写入器
|
Modifier and Type | Class and Description |
---|---|
class |
WatchServiceWrapper
WatchEvent 包装类,提供可选的监听事件和监听选项,实现方法包括:
注册:WatchServiceWrapper.registerPath(Path, int) 注册需要监听的路径。 |
Modifier and Type | Class and Description |
---|---|
class |
SimpleWrapper<T>
简单包装对象
通过继承此类,可以直接使用被包装的对象,用于简化和统一封装。 |
Modifier and Type | Class and Description |
---|---|
class |
BiMap<K,V>
双向Map
互换键值对不检查值是否有重复,如果有则后加入的元素替换先加入的元素 值的顺序在HashMap中不确定,所以谁覆盖谁也不确定,在有序的Map中按照先后顺序覆盖,保留最后的值 它与TableMap的区别是,BiMap维护两个Map实现高效的正向和反向查找 |
class |
CamelCaseLinkedMap<K,V>
驼峰Key风格的LinkedHashMap
对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖 |
class |
CamelCaseMap<K,V>
驼峰Key风格的Map
对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖 |
class |
CaseInsensitiveLinkedMap<K,V>
忽略大小写的LinkedHashMap
对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖 |
class |
CaseInsensitiveMap<K,V>
忽略大小写的Map
对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖 |
class |
CaseInsensitiveTreeMap<K,V>
忽略大小写的
TreeMap 对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖 |
class |
CustomKeyMap<K,V>
自定义键的Map,默认HashMap实现
|
class |
Dict
字典对象,扩充了LinkedHashMap中的方法
|
class |
FuncKeyMap<K,V>
自定义函数Key风格的Map
|
class |
FuncMap<K,V>
自定义键值函数风格的Map
|
static class |
LinkedForestMap.EntryNodeWrapper<K,V,N extends TreeEntry<K,V>>
Map.Entry 包装类 |
class |
MapWrapper<K,V>
Map包装类,通过包装一个已有Map实现特定功能。
|
class |
TolerantMap<K,V>
一个可以提供默认值的Map
|
class |
TransMap<K,V>
|
Modifier and Type | Class and Description |
---|---|
class |
AbsCollValueMap<K,V>
MultiValueMap 的基本实现 |
class |
CollectionValueMap<K,V>
|
class |
Graph<T>
支持处理无向图结构的
Map ,本质上是基于SetValueMap 实现的邻接表 |
class |
ListValueMap<K,V>
值作为集合List的Map实现,通过调用putValue可以在相同key时加入多个值,多个值用集合表示
|
class |
SetValueMap<K,V>
值作为集合Set(LinkedHashSet)的Map实现,通过调用putValue可以在相同key时加入多个值,多个值用集合表示
|
Modifier and Type | Interface and Description |
---|---|
interface |
Poolable<T>
池化对象
|
Modifier and Type | Class and Description |
---|---|
class |
SimplePoolable<T>
简单可池化对象,此对象会同时持有原始对象和所在的分区
|
Modifier and Type | Class and Description |
---|---|
class |
PartitionPoolable<T>
分区可池化对象,此对象会同时持有原始对象和所在的分区
|
Modifier and Type | Class and Description |
---|---|
class |
DelegatedExecutorService
ExecutorService代理
|
class |
FinalizableDelegatedExecutorService
保证ExecutorService在对象回收时正常结束
|
Modifier and Type | Class and Description |
---|---|
class |
JceCipher
提供
Cipher 的方法包装 |
Modifier and Type | Class and Description |
---|---|
class |
BCCipher
基于BouncyCastle库封装的加密解密实现,包装包括:
BufferedBlockCipher
BlockCipher
StreamCipher
AEADBlockCipher
|
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 |
ActiveEntity
动态实体类
提供了针对自身实体的增删改方法 |
class |
Entity
数据实体对象
数据实体类充当两个角色: 1. |
Modifier and Type | Class and Description |
---|---|
class |
DSWrapper
DataSource 数据源实现包装,通过包装,提供基本功能外的额外功能和参数持有,包括:
1. |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionWrapper
连接包装,用于丰富功能
|
class |
PooledConnection
池化
|
Modifier and Type | Class and Description |
---|---|
class |
DatabaseMetaDataWrapper
用于封装DatabaseMetaData对象,并提供特定数据库的元数据访问。
|
Modifier and Type | Class and Description |
---|---|
class |
StatementWrapper
PreparedStatement 包装类,用于添加拦截方法功能拦截方法包括: 1. |
Modifier and Type | Interface and Description |
---|---|
interface |
Session
SSH Session抽象
|
Modifier and Type | Class and Description |
---|---|
class |
GanymedSession
Session 包装 |
Modifier and Type | Class and Description |
---|---|
class |
JschSession
Jsch Session封装
|
Modifier and Type | Class and Description |
---|---|
class |
MinaSession
Apache MINA SSHD(https://mina.apache.org/sshd-project/)会话封装
|
Modifier and Type | Class and Description |
---|---|
class |
SshjSession
基于SSHJ(https://github.com/hierynomus/sshj)的Session封装
|
Modifier and Type | Interface and Description |
---|---|
interface |
TemplateEngine
引擎接口,通过实现此接口从而使用对应的模板引擎
|
Modifier and Type | Class and Description |
---|---|
class |
BeetlEngine
Beetl模板引擎封装
|
Modifier and Type | Class and Description |
---|---|
class |
EnjoyEngine
Enjoy库的引擎包装
|
Modifier and Type | Class and Description |
---|---|
class |
FreemarkerEngine
FreeMarker模板引擎封装
见:https://freemarker.apache.org/ |
Modifier and Type | Class and Description |
---|---|
class |
JetbrickEngine
Jetbrick模板引擎封装
见:https://github.com/subchen/jetbrick-template-2x |
Modifier and Type | Class and Description |
---|---|
class |
JteEngine
jte实现
见:https://jte.gg/ |
Modifier and Type | Class and Description |
---|---|
class |
PebbleTemplateEngine
Pebble(https://pebbletemplates.io/) 模板引擎
|
Modifier and Type | Class and Description |
---|---|
class |
RythmEngine
Rythm模板引擎
文档:http://rythmengine.org/doc/index |
Modifier and Type | Class and Description |
---|---|
class |
ThymeleafEngine
Thymeleaf模板引擎实现
|
Modifier and Type | Class and Description |
---|---|
class |
VelocityEngine
Velocity模板引擎
见:http://velocity.apache.org |
Modifier and Type | Class and Description |
---|---|
class |
WitEngine
Wit(http://zqq90.github.io/webit-script/)模板引擎封装
|
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 |
HttpExchangeWrapper
HttpExchange 包装类,提供增强方法和缓存 |
Modifier and Type | Class and Description |
---|---|
class |
JSONArray
JSON数组
JSON数组是表示中括号括住的数据表现形式 对应的JSON字符串格格式例如: ["a", "b", "c", 12] |
class |
JSONObject
JSON对象
对象是 JSON 中的映射类型。 |
class |
JSONPrimitive
JSON原始类型数据封装,根据RFC8259规范,JSONPrimitive只包含以下类型:
Number
boolean
String
|
Modifier and Type | Class and Description |
---|---|
class |
GsonEngine
Gson引擎实现
|
Modifier and Type | Class and Description |
---|---|
class |
JacksonEngine
Jackson引擎
|
Modifier and Type | Class and Description |
---|---|
class |
MoshiEngine
Moshi引擎实现
|
Modifier and Type | Class and Description |
---|---|
class |
JSONTokener
JSON解析器
用于解析JSON字符串,支持流式解析,即逐个字符解析,而不是一次性解析整个字符串。 |
Modifier and Type | Class and Description |
---|---|
class |
XMLTokener
XML分析器,继承自JSONTokener,提供XML的语法分析
|
Modifier and Type | Class and Description |
---|---|
class |
CsvRow
CSV中一行的表示
|
class |
CsvTokener
CSV解析器,用于解析CSV文件
|
Copyright © 2025. All rights reserved.