{"id":26776013,"url":"https://github.com/lijiahangmax/orion-kit","last_synced_at":"2025-10-04T11:45:51.811Z","repository":{"id":44461777,"uuid":"263543377","full_name":"lijiahangmax/orion-kit","owner":"lijiahangmax","description":"一个功能强大, 覆盖面广的工具类库。让你的开发无须编写重复的底层代码, 提高开发效率, 让你的代码更加简练、易读, 稳定且优雅。","archived":false,"fork":false,"pushed_at":"2025-04-12T06:18:32.000Z","size":17117,"stargazers_count":25,"open_issues_count":0,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T07:25:05.293Z","etag":null,"topics":["common","io","java","jsch","kit","lang","spring","string","tools","util","utils"],"latest_commit_sha":null,"homepage":"https://kit.orionsec.cn/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lijiahangmax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-13T06:22:38.000Z","updated_at":"2025-04-12T06:18:36.000Z","dependencies_parsed_at":"2024-05-30T11:24:56.649Z","dependency_job_id":"4c1c34e0-b977-4383-a30c-ef0beb9baf07","html_url":"https://github.com/lijiahangmax/orion-kit","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lijiahangmax%2Forion-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lijiahangmax%2Forion-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lijiahangmax%2Forion-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lijiahangmax%2Forion-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lijiahangmax","download_url":"https://codeload.github.com/lijiahangmax/orion-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182814,"owners_count":21226123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common","io","java","jsch","kit","lang","spring","string","tools","util","utils"],"created_at":"2025-03-29T03:32:29.787Z","updated_at":"2025-10-04T11:45:51.791Z","avatar_url":"https://github.com/lijiahangmax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"margin-top: 12px\" align=\"center\"\u003e\u003cb\u003e一个功能强大, 覆盖面广的工具类库。让你的开发无须编写重复的底层代码, 提高开发效率, 让你的代码更加简练、易读, 稳定且优雅。它是我学习以及时工作用到的工具重构, 补全注释, 统一规范后的产物。\u003c/b\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://search.maven.org/artifact/cn.orionsec.kit/orion-all\"\u003e\n        \u003cimg src=\"https://img.shields.io/maven-central/v/cn.orionsec.kit/orion-all.svg\" alt=\"maven\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://www.codacy.com/gh/lijiahangmax/orion-kit/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=lijiahangmax/orion-kit\u0026amp;utm_campaign=Badge_Grade\"\u003e\n        \u003cimg src=\"https://app.codacy.com/project/badge/Grade/2886375d056342028ef7da0ae7b6fa26\" alt=\"Codacy\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/JDK-8+-green.svg\" alt=\"jdk8\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://opensource.org/licenses/mit-license.php\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/lijiahangmax/orion-kit\" alt=\"License\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://gitee.com/lijiahangmax/orion-kit/stargazers\"\u003e\n        \u003cimg src=\"https://gitee.com/lijiahangmax/orion-kit/badge/star.svg?theme=dark\" alt=\"star\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://gitee.com/lijiahangmax/orion-kit/members\"\u003e\n        \u003cimg src=\"https://gitee.com/lijiahangmax/orion-kit/badge/fork.svg?theme=dark\" alt=\"fork\"/\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\"\n       style=\"text-decoration: none !important;\"\n       href=\"https://github.com/lijiahangmax/orion-kit\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/stars/lijiahangmax/orion-kit.svg?style=social\" alt=\"star\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n------------------------------\n\n* [项目文档](https://kit.orionsec.cn)\n* [javaDoc](https://kit-docs.orionsec.cn)\n\n### 工程模块\n\n| 模块              | 数量                                         |\n|:----------------|:-------------------------------------------|\n| orion-lang      | 底层核心模块 集合、IO、反射、转换、日期、异常、加密、编码, 函数等        |\n| orion-ext       | 拓展模块 IP位置、邮件、process、tail、git, watch等      |\n| orion-office    | 数据处理模块 csv, excel导入导出以及相互转化等               |\n| orion-log       | 日志模块 (忽略)                                  |\n| orion-http      | http模块 OkHttp、HttpClient、jsup的统一封装, UA生成器等 |\n| orion-net       | 网络交互模块 SSH、SFTP、FTP, Socket的简单封装           |\n| orion-web       | servlet模块 (忽略)                             |\n| orion-redis     | redis模块 (忽略)                               |\n| orion-spring    | spring模块 (忽略)                              |\n| orion-generator | 随机信息生成器模块 包含各式各样的随机数据生成器                   |\n| orion-all       | 全部模块聚合 包含了上述所有模块的引用                        |\n\n## 模块化引用\n\n```xml\n\u003c!-- 模块化引用 --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.orionsec.kit\u003c/groupId\u003e\n    \u003cartifactId\u003e模块名称\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 引用全部\n\n```xml\n\u003c!-- 如果想引用所有可以直接引入 orion-all --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.orionsec.kit\u003c/groupId\u003e\n    \u003cartifactId\u003eorion-all\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### 如何寻找需要的工具类\n\n可以使用英文直译的方式寻找, 工具命名规则为 `职能 + s`, 如过存在原生工具如`Arrays`, `Objects`, `Files` 则命名为 `Arrays1`, `Objects1`, `Files1`\n\u003e 示例\n\n| 描述           | 方法                          | \n|:-------------|:----------------------------| \n| 字符串判空        | Strings.isBlank             | \n| 集合判空         | List.isEmpty  Maps.isEmpty  | \n| 读取文件列表       | Files1.listFiles            | \n| 读取文件内容       | FileReaders.readAllLines    | \n| 文件压缩         | Compresses.zip              | \n| Input转byte[] | Streams.toByteArray         | \n| 时间格式化        | Dates.format                | \n| 反射读取类字段      | Fields.getFieldByMethod     | \n| 反射读取类方法      | Methods.getAccessibleMethod | \n| 生成二维码        | new QRCodes().encodeBase64  | \n| 生成一维码        | new BarCodes().encodeBase64 | \n| 并发执行线程       | Threads.concurrent          | \n| MD5签名        | Signatures.md5              | \n\n### orion-lang 模块职能\n\n```\n┌─able                      对象职能接口\n├─constant                  自定义常量\n├─exception                 自定义异常\n├─function                  自定义函数\n├─id                        全局id生成器\n├─lang              \n│  ├─builder                通用构造器\n│  ├─cache                  缓存\n│  ├─collect                自定义集合\n│  ├─io                     自定义io流\n│  ├─iterator               自定义迭代器\n│  ├─mutable                可变对象\n│  ├─thread                 线程工具包\n│  └─wrapper                消息载体\n│          \n└─utils          \n    │  Arrays1              数组工具类\n    │  Booleans             布尔值工具类\n    │  Chars                字符工具类\n    │  Charsets             编码工具类\n    │  Colors               颜色工具类\n    │  Compares             比较工具类\n    │  Enums                枚举工具类\n    │  Exceptions           异常工具类\n    │  Moneys               金额工具类\n    │  Objects1             对象工具类\n    │  References           引用工具类\n    │  Spells               拼音工具类\n    │  Strings              字符串工具类\n    │  Systems              系统工具类\n    │  Threads              线程工具类\n    │  Assert               断言工具类\n    │\n    ├─awt\n    │  Clipboards           剪切板工具类\n    │  Fonts                字体工具类\n    │  ImageDrawStream      流式绘图工具类\n    │  ImageExecutorStream  流式图片处理\n    │  ImageIcons           icon 生成器\n    │  ImageMargins         图片边距处理器\n    │  Images               图片工具类\n    │\n    ├─code\n    │  BarCodes             一维码生成器\n    │  QRCodes              二维码生成器\n    │ \n    ├─codec \n    │  Base32s              base32 工具类\n    │  Base62s              base62 工具类\n    │  Base64s              base64 工具类\n    │ \n    ├─collect \n    │  Collections          集合工具类\n    │  Lists                list 工具类\n    │  Maps                 map 工具类\n    │  Queues               queue 工具类\n    │  Sets                 set 工具类\n    │ \n    ├─convert               对象转化工具包\n    │ \n    ├─crypto \n    │  │  AES               AES 工具类\n    │  │  Caesars           凯撒密码工具类          \n    │  │  DES               DES 工具类\n    │  │  DES3              3DES 工具类\n    │  │  Keys              密钥工具类\n    │  │  RC4               RC4 工具类\n    │  │  RSA               RSA 工具类\n    │  │  Signatures        签名工具类\n    │  │  SM4               SM4 工具类\n    │  │ \n    │  ├─enums              工作模式, 填充方式等枚举\n    │  │ \n    │  └─symmetric          对称加密实现\n    │ \n    ├─ext \n    │  │  EmojiExt          emoji 工具类\n    │  │  PropertiesExt     properties 工具类\n    │  │ \n    │  ├─dom                xml 工具类\n    │  │ \n    │  └─yml                yml 工具类\n    │ \n    ├─hash                  哈希算法工具类\n    │ \n    ├─identity \n    │      CreditCodes      社会统一信用代码工具类\n    │      IdCards          身份证工具类\n    │ \n    ├─io \n    │  │  Buffers           buffer 工具类\n    │  │  Files1            文件操作工具类\n    │  │  FileEncodes       文件编码工具类\n    │  │  FileLocks         文件锁工具类\n    │  │  FileReaders       文件读取工具类\n    │  │  FileWriters       文件写入工具类\n    │  │  FileTypes         文件类型工具类\n    │  │  Streams           IO流工具类\n    │  │  StreamReaders     IO读取工具类\n    │  │  StreamWriters     IO写入工具类\n    │  │ \n    │  ├─compress           文件压缩工具类\n    │  │ \n    │  ├─crypto             文件加解密工具类\n    │  │ \n    │  └─split              文件分切合并工具类\n    │ \n    ├─json                  json 工具类\n    │ \n    ├─math \n    │      BigDecimals      BigDecimal 工具类 \n    │      BigIntegers      BigInteger 工具类\n    │      Hex              16进制工具类\n    │      Numbers          数字工具类\n    │ \n    ├─net \n    │      IPs              IP工具类\n    │      Ports            端口工具类\n    │ \n    ├─random \n    │      Randoms          随机数工具类\n    │      RndGenerator     伪随机数发生器\n    │ \n    ├─reflect \n    │      Annotations      注解工具类\n    │      BeanMap          Bean 转Map 工具类\n    │      BeanWrapper      Bean 转化工具类\n    │      Classes          Class 工具类\n    │      Constructors     构造方法工具类\n    │      Fields           字段工具类\n    │      Generics         泛型工具类\n    │      Methods          字段工具类\n    │      Jars             jar 文件工具类\n    │      Packages         包工具类\n    │      PackageScanner   包扫描器\n    │      ResourceScanner  资源扫描器\n    │      TypeInfer        类型推断器\n    │      Types            类型工具类\n    │ \n    ├─regexp                正则工具类\n    │ \n    ├─script                脚本工具类\n    │ \n    ├─time \n    │  │  Birthdays         生日工具类\n    │  │  DateRanges        时间区间工具类\n    │  │  Dates             时间工具类(Date)\n    │  │  Dates8            时间工具类(jdk1.8)\n    │  │  DateStream        流式时间处理器\n    │  │  LunarCalendar     农历工具类\n    │  │  Zodiacs           生肖工具类\n    │  │ \n    │  ├─ago                时间对比工具类\n    │  │ \n    │  └─cron               cron 工具类\n    │ \n    └─unit \n            LengthUnit      长度单位\n            WeightUnit      重量单位\n```\n\n### orion-ext 模块职能\n\n```\n┌─location                 ip 地理位置工具类\n│\n├─mail                     邮件工具类\n│\n├─process                  进程工具类\n│\n├─tail                     文件 tail 工具类\n│\n├─vcs\n│  └─git                   git 工具类\n│\n└─watch\n    ├─file                 文件监听工具类\n    │\n    └─folder               文件夹监听工具类\n```\n\n### orion-office 模块职能\n\n```\n┌─csv\n│  │  CsvExt               csv提取器\n│  │\n│  ├─annotation            csv导入导出注解\n│  │\n│  ├─convert               csv转化器\n│  │  │\n│  │  └─adapter            csv适配器\n│  │\n│  ├─core                  csv处理器核心\n│  │\n│  ├─merge                 csv合并工具\n│  │\n│  ├─option                csv配置项\n│  │\n│  ├─reader\n│  │   CsvArrayReader      csv array读取器\n│  │   CsvBeanReader       csv bean读取器\n│  │   CsvLambdaReader     csv lamdba读取器\n│  │   CsvMapReader        csv map读取器\n│  │   CsvRawReader        csv 行读取器\n│  │   CsvReaderIterator   csv 行迭代器\n│  │\n│  ├─split\n│  │   CsvColumnSplit      csv列分割器\n│  │   CsvRowSplit         csv行分割器\n│  │\n│  └─writer\n│      CsvArrayWriter      csv array写入器\n│      CsvBeanWriter       csv bean写入器\n│      CsvLambdaWriter     csv lambda写入器\n│      CsvMapWriter        csv map写入器\n│\n└──excel\n   │  ExcelExt             excel 提取器\n   │  Excels               excel 工具类\n   │\n   ├─annotation            excel 导入导出注解\n   │\n   ├─convert               excel 转换器\n   │  │ \n   │  └─adapter            excel 适配器\n   │\n   ├─copy\n   │   SheetCopier         excel sheet 拷贝工具\n   │\n   ├─merge\n   │   ExcelMerge          excel 合并工具\n   │\n   ├─option                excel 配置项\n   │\n   ├─picture\n   │   PictureParser       excel 图片解析器\n   │\n   ├─reader\n   │   ExcelArrayReader    excel array读取器\n   │   ExcelBeanReader     excel bean读取器\n   │   ExcelLambdaReader   excel lambda读取器\n   │   ExcelMapReader      excel map读取器\n   │   ExcelReaderIterator excel 迭代器\n   │\n   ├─split\n   │   ExcelColumnMultiSheetSplit  excel 多列拆分多 sheet 工具类\n   │   ExcelColumnMultiSplit       excel 多列拆分工具类\n   │   ExcelColumnSingleSplit      excel 单列拆分工具类\n   │   ExcelRowSplit               excel 行拆分工具类\n   │\n   ├─style\n   │   FontStream             字体样式流式处理器\n   │   PrintStream            打印流式处理器\n   │   StyleStream            样式流式处理器\n   │  \n   ├─type                     excel 枚举\n   │\n   └─writer\n       │  ExcelArrayWriter    excel array写入器 \n       │  ExcelBeanWriter     excel bean写入器\n       │  ExcelLambdaWriter   excel lambda写入器\n       │  ExcelMapWriter      excel map写入器\n       │ \n       └─exporting            excel 注解写入器   \n```\n\n### orion-http 模块职能\n\n```\n┌─apache                    httpClient 二次封装                 \n│  │\n│  └─file                   httpClient 文件上传下载\n│\n├─ok                        okHttp 二次封装\n│  │\n│  ├─file                   okHttp 文件上传下载\n│  │\n│  └─ws                     websocket 处理器           \n│\n├─parse                     jsup 二次封装\n│\n├─support                   http 常量\n│\n└─useragent\n    StandardUserAgent       UA 常量\n    UserAgentGenerators     UA 生成器\n```\n\n### orion-net 模块职能\n\n```\n┌─ftp\n│  ├─client                 FTPClient 工具类\n│  │  │\n│  │  ├─transfer            FTP 大文件传输\n│  │  │\n│  │  ├─config              FTPClient 配置\n│  │  │\n│  │  └─pool                FTPClient 连接池\n│  │\n│  └─server                 FTPServer 工具类\n│\n├─host                      远程机器连接工具 jsch\n│  │\n│  ├─sftp                   sftp 执行器\n│  │  \n│  └─ssh                    shell / command 执行器 \n│\n├─socket\n│    Sockets                socket 工具类\n│    TcpReceive             tcp 接收器\n│    TcpSend                tcp 发送器\n│    UdpReceive             udp 接收器\n│    UdpSend                udp 发送器\n│\n└─specification             标准定义\n \n```\n\n### orion-generator 模块职能\n\n```\n┌─faker            随机数据生成器工具\n│\n├─addres           随机地址生成器\n│\n├─email            随机邮箱生成器\n│\n├─mobile           随机手机号生成器\n│\n├─name             随机中英文名字生成器\n│\n├─industry         随机行业生成器\n│\n├─idcard           随机 idcard 生成器\n│\n├─bank             随机 bank 生成器\n│\n├─company          随机公司名称名称生成器\n│ \n├─education        随机学校名称生成器\n│\n└─plate            随机车牌号生成器\n```\n\n### 联系我\n\n\u003cimg src=\"https://yxythpt.oss-cn-shenzhen.aliyuncs.com/2022-03-28/files5090991341399292419.jpg\" alt=\"联系微信\" width=\"268px\"/\u003e\n\n📧 问题/加群微信备注: kit  \n📧 合作/功能定制备注: 合作\n\n### 支持一下\n\n\u003cimg src=\"https://yxythpt.oss-cn-shenzhen.aliyuncs.com/2022-04-25/files4948235556147091810.png\" alt=\"收款码\" width=\"540px\"/\u003e\n\n### License\n\n使用 [MIT](https://github.com/lijiahangmax/orion-kit/blob/master/LICENSE) 开源许可证, 请自觉遵循。  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flijiahangmax%2Forion-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flijiahangmax%2Forion-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flijiahangmax%2Forion-kit/lists"}