Package | Description |
---|---|
org.dromara.hutool.core.annotation |
注解包,提供增强型注解和注解工具类,处理包括:
注解元素(AnnotatedElement)上的注解。 |
org.dromara.hutool.core.bean |
Bean相关操作,包括Bean信息描述,Bean路径表达式、动态Bean、Bean工具等
|
org.dromara.hutool.core.classloader |
类加载相关封装和工具
|
org.dromara.hutool.core.codec |
编码解码封装编码封装
|
org.dromara.hutool.core.codec.binary |
BaseN编码解码,提供将bytes和baseN的编码转换功能。
|
org.dromara.hutool.core.comparator |
各种比较器(Comparator)实现和封装
|
org.dromara.hutool.core.compress |
压缩解压封装
|
org.dromara.hutool.core.convert |
万能类型转换器以及各种类型转换的实现类,其中Convert为转换器入口,提供各种toXXX方法和convert方法
转换器是典型的策略模式应用,可自定义转换策略。 |
org.dromara.hutool.core.date |
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
|
org.dromara.hutool.core.exception |
特殊异常封装,同时提供异常工具ExceptionUtil
|
org.dromara.hutool.core.io |
IO相关封装和工具类,包括Inputstream和OutputStream实现类,工具包括流工具IoUtil、文件工具FileUtil和Buffer工具BufferUtil
|
org.dromara.hutool.core.io.resource |
针对ClassPath和文件中资源读取的封装,主要入口为工具类ResourceUtil
|
org.dromara.hutool.core.io.stream |
InputStream和OutputStream相关方法和类封装
|
org.dromara.hutool.core.io.watch |
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
|
org.dromara.hutool.core.lang |
语言特性包,包括大量便捷的数据结构,包括:
ANSI:ANSI编码
Builder:构建器
Caller:查找调用者
Copier:拷贝(复制)
Generator:生成器
Getter:getXXX抽象
Intern:规范化表示形式
Loader:加载器的抽象
Mutable:可变值对象封装
Range:区间和边界封装
Tuple:元组
|
org.dromara.hutool.core.map.multi |
多参数类型的Map实现,包括集合类型值的MultiValueMap和Table
MultiValueMap:一个键对应多个值的集合的实现,类似于树的结构。 |
org.dromara.hutool.core.net.url |
URL相关工具
|
org.dromara.hutool.core.pool |
对象池封装实现
整体参考了: https://github.com/DanielYWoo/fast-object-pool/ https://github.com/apache/commons-pool |
org.dromara.hutool.core.reflect |
提供反射相关功能对象和类
|
org.dromara.hutool.core.reflect.lookup |
MethodHandles.Lookup 创建封装,以根据不同的条件查找MethodHandles jdk8中如果直接调用 MethodHandles.lookup() 获取到的MethodHandles.Lookup 在调用findSpecial和unreflectSpecial
时会出现权限不够问题,抛出"no private access for invokespecial"异常,因此针对JDK8及JDK9+分别封装lookup方法。 |
org.dromara.hutool.core.reflect.method |
提供方法相关封装
|
org.dromara.hutool.core.spi |
服务提供接口SPI(Service Provider interface)机制相关封装,包括:
ListServiceLoader ,提供列表形式的服务定义
MapServiceLoader ,提供键值对形式的服务定义
|
org.dromara.hutool.core.thread |
提供线程及高并发封装,入口为ThreadUtil
|
org.dromara.hutool.core.util |
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
|
org.dromara.hutool.core.xml |
XML相关工具封装
|
org.dromara.hutool.cron |
定时任务模块,提供类Crontab表达式的定时任务,实现参考了Cron4j,同时可以支持秒级别的定时任务定义和年的定义(同时兼容Crontab、Cron4j、Quartz表达式)
定时任务模块由三部分组成: Scheduler 定时任务调度器,用于整体管理任务的增删、启停和触发运行。 |
org.dromara.hutool.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了:
1.
|
org.dromara.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
|
org.dromara.hutool.extra.compress |
基于commons-compress的压缩解压封装
支持包括:gzip, bzip2, xz, lzma, Pack200, DEFLATE, Brotli, DEFLATE64, ZStandard and Z, the archiver formats are 7z, ar, arj, cpio, dump, tar and zip等格式。 |
org.dromara.hutool.extra.ftp |
基于Apache Commons Net封装的FTP工具
|
org.dromara.hutool.extra.mail |
邮件封装,基于jakarta.mail库,入口为MailUtil
|
org.dromara.hutool.extra.management |
Management模块主要获取系统、JVM、内存、CPU等信息,以便动态监测系统状态
|
org.dromara.hutool.extra.pinyin |
拼音相关封装
createEngine getPinyin
PinyinEngineFactory =》 PinyinEngine =》 拼音
|
org.dromara.hutool.extra.qrcode |
二维码封装,基于zxing库,入口为QrCodeUtil
|
org.dromara.hutool.extra.spring |
Spring相关工具封装
|
org.dromara.hutool.extra.ssh |
Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
|
org.dromara.hutool.extra.template |
第三方模板引擎封装,提供统一的接口用于适配第三方模板引擎,提供:
TemplateEngine:模板引擎接口,用于不同引擎的实现。
|
org.dromara.hutool.extra.tokenizer |
中文分词封装
通过定义统一接口,适配第三方分词引擎 |
org.dromara.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
org.dromara.hutool.http.webservice |
Webservice客户端封装实现
|
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.jwt |
JSON Web Token (JWT)封装
规范见:https://datatracker.ietf.org/doc/html/rfc7519 |
org.dromara.hutool.poi |
POI封装实现
Java针对MS Office的操作的库屈指可数,比较有名的就是Apache的POI库。 |
org.dromara.hutool.poi.excel.sax |
Sax方式操作Excel方式的封装
|
org.dromara.hutool.setting |
Setting模块主要针对Properties文件读写做封装,同时定义一套自己的配置文件规范,实现兼容性良好的配置工具。
|
org.dromara.hutool.socket |
Socket套接字相关工具类封装
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
ValidateException
验证异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
StatefulException
带有状态码的异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
ValidateException
验证异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
ValidateException
验证异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
DependencyException
依赖异常
|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Class and Description |
---|
HutoolException
Hutool工具类异常
|
Copyright © 2025. All rights reserved.