Module cloud.opencode.base.io
module cloud.opencode.base.io
OpenCode Base IO Module
OpenCode 基础 IO 模块
Provides file I/O utilities based on NIO.2 API with unchecked exceptions.
提供基于 NIO.2 API 的文件 I/O 工具,使用非受检异常。
Key Features | 主要功能:
- File and directory operations - 文件和目录操作
- Resource loading (classpath/file/URL) - 资源加载
- Stream processing utilities - 流处理工具
- Checksum calculation - 校验和计算
- Temporary file management - 临时文件管理
- File watching - 文件监听
- MIME type detection - MIME 类型检测
- Batch/parallel operations - 批量/并行操作
- File locking utilities - 文件锁定工具
- Gzip/Zip compression - Gzip/Zip 压缩 (V1.0.3)
- Hex dump formatting - 十六进制转储 (V1.0.3)
- Stream adapters (Reader↔InputStream) - 流适配器 (V1.0.3)
- Tail reader and line processor - 尾部读取与行处理 (V1.0.3)
- File-backed output stream - 文件后备输出流 (V1.0.3)
- ZIP options/result records and Builder (
ZipOptions/ZipResult/ZipEntrySource) - ZIP 选项/结果记录与 Builder (V1.0.4) - ZIP encryption and overwrite enums (
EncryptionMethod/OverwritePolicy) - ZIP 加密与覆盖枚举 (V1.0.4) - ZIP-bomb dedicated exception (
ZipBombDetectedException) with structured fields - ZIP 炸弹专属异常(含结构化字段) (V1.0.4) - ZIP-bomb threshold preset record (
BombProtection) - ZIP 炸弹阈值预设记录 (V1.0.4) - ZIP in-place mutation utility (
ZipModifier#addEntries/#removeEntries) - ZIP 就地修改工具 (V1.0.4) - Options-aware ZIP utilities (
ZipUtil#compress/#extract/#extractMatching/#openEntry/#compressStream) - 带选项的 ZIP 工具方法 (V1.0.4)
- Since:
- JDK 25, opencode-base-io V1.0.0
- Author:
- Leon Soo
-
Packages
ExportsPackageDescription