Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- actionVisitor(Consumer) - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates an action visitor that performs an action on each file 创建对每个文件执行操作的操作访问器
- addBytes(String, byte[]) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds raw bytes as an entry 添加原始字节作为条目
- addDirectory(Path) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds a directory recursively 递归添加目录
- added() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns the value of the
addedrecord component. - addFile(Path) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds a file using its file name as entry name 使用文件名作为条目名添加文件
- addFile(Path, String) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds a file with a custom entry name 使用自定义条目名添加文件
- addString(String, String) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds a string as an entry using UTF-8 encoding 使用UTF-8编码添加字符串作为条目
- addString(String, String, Charset) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Adds a string as an entry with the specified charset 使用指定字符集添加字符串作为条目
- algorithm() - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Returns the value of the
algorithmrecord component. - anyMatch(Predicate) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Tests whether any processed line matches the predicate 测试是否有任何处理后的行匹配谓词
- append() - Method in class cloud.opencode.base.io.file.FileWriter
-
Enables append mode 启用追加模式
- append(boolean) - Method in class cloud.opencode.base.io.file.FileWriter
-
Sets append mode 设置追加模式
- append(Path, CharSequence) - Static method in class cloud.opencode.base.io.OpenIO
-
Appends content to file 追加内容到文件
- appendLines(Path, Iterable) - Static method in class cloud.opencode.base.io.OpenIO
-
Appends lines to file 追加行到文件
- APPLICATION_JSON - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Common JSON MIME type 常见 JSON MIME 类型
- APPLICATION_OCTET_STREAM - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Default MIME type for unknown content 未知内容的默认 MIME 类型
- APPLICATION_PDF - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Common PDF MIME type 常见 PDF MIME 类型
- APPLICATION_XML - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Common XML MIME type 常见 XML MIME 类型
- asBufferedReader() - Method in class cloud.opencode.base.io.file.FileReader
-
Gets a buffered reader 获取缓冲读取器
- asBufferedWriter() - Method in class cloud.opencode.base.io.file.FileWriter
-
Gets a buffered writer 获取缓冲写入器
- asBytes() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads file as byte array 读取文件为字节数组
- asCharSink() - Method in class cloud.opencode.base.io.source.ByteSink
-
Returns a view of this sink as a CharSink with UTF-8 charset.
- asCharSink(Charset) - Method in class cloud.opencode.base.io.source.ByteSink
-
Returns a view of this sink as a CharSink with the given charset.
- asCharSource() - Method in class cloud.opencode.base.io.source.ByteSource
-
Returns a view of the contents as a CharSource with UTF-8 charset.
- asCharSource(Charset) - Method in class cloud.opencode.base.io.source.ByteSource
-
Returns a view of the contents as a CharSource with the given charset.
- asInputStream() - Method in class cloud.opencode.base.io.file.FileReader
-
Gets an input stream 获取输入流
- asLines() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads file as list of lines 读取文件为行列表
- asLineStream() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads file as stream of lines 读取文件为行流
- asOutputStream() - Method in class cloud.opencode.base.io.file.FileWriter
-
Gets an output stream 获取输出流
- asString() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads file as string 读取文件为字符串
- AutoDeleteTempFile - Class in cloud.opencode.base.io.temp
-
Auto Delete Temp File 自动删除临时文件
- available() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
B
- BatchResult - Record Class in cloud.opencode.base.io.batch
-
Batch Operation Result 批量操作结果
- BatchResult(String, int, int, int, int, Map, Instant, Instant) - Constructor for record class cloud.opencode.base.io.batch.BatchResult
-
Creates an instance of a
BatchResultrecord class. - BatchResult.Builder - Class in cloud.opencode.base.io.batch
-
BatchResult Builder 批量结果构建器
- BoundedInputStream - Class in cloud.opencode.base.io.stream
-
Bounded Input Stream 限制大小输入流
- BoundedInputStream(InputStream, long) - Constructor for class cloud.opencode.base.io.stream.BoundedInputStream
-
Creates a bounded input stream 创建限制大小输入流
- BoundedInputStream(InputStream, long, boolean) - Constructor for class cloud.opencode.base.io.stream.BoundedInputStream
-
Creates a bounded input stream with exception option 创建带异常选项的限制大小输入流
- buffer(InputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Wraps as buffered input stream 包装为缓冲输入流
- buffer(OutputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Wraps as buffered output stream 包装为缓冲输出流
- build() - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Build the result 构建结果
- builder() - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Creates a new fluent builder for assembling a zip archive 创建一个新的流式构建器用于组装zip归档
- builder() - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Creates a new builder.
- builder(String) - Static method in record class cloud.opencode.base.io.batch.BatchResult
-
Create a builder 创建构建器
- Builder(String) - Constructor for class cloud.opencode.base.io.batch.BatchResult.Builder
- bytes() - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Gets a copy of the checksum bytes 获取校验和字节的副本
- bytes() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Gets the actual data as a trimmed byte array.
- BYTES_PER_LINE - Static variable in class cloud.opencode.base.io.hex.HexDump
-
Number of bytes displayed per line in hex dump format 十六进制转储格式中每行显示的字节数
- ByteSink - Class in cloud.opencode.base.io.source
-
Abstract Byte Sink - A writable destination for bytes 抽象字节接收器 - 可写的字节目标
- ByteSink() - Constructor for class cloud.opencode.base.io.source.ByteSink
- ByteSource - Class in cloud.opencode.base.io.source
-
Abstract Byte Source - A readable source of bytes 抽象字节源 - 可读的字节来源
- ByteSource() - Constructor for class cloud.opencode.base.io.source.ByteSource
- bytesUploaded() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the value of the
bytesUploadedrecord component.
C
- calculate(InputStream, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates digest and returns Checksum object 计算摘要并返回Checksum对象
- calculate(Path, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates digest and returns Checksum object 计算摘要并返回Checksum对象
- changed() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns the value of the
changedrecord component. - changeExtension(Path, String) - Static method in class cloud.opencode.base.io.OpenPath
-
Changes file extension 更改文件扩展名
- charset(Charset) - Method in class cloud.opencode.base.io.file.FileReader
-
Sets the charset 设置字符集
- charset(Charset) - Method in class cloud.opencode.base.io.file.FileWriter
-
Sets the charset 设置字符集
- CharSink - Class in cloud.opencode.base.io.source
-
Abstract Character Sink - A writable destination for characters 抽象字符接收器 - 可写的字符目标
- CharSink() - Constructor for class cloud.opencode.base.io.source.CharSink
- CharSource - Class in cloud.opencode.base.io.source
-
Abstract Character Source - A readable source of characters 抽象字符源 - 可读的字符来源
- CharSource() - Constructor for class cloud.opencode.base.io.source.CharSource
- Checksum - Record Class in cloud.opencode.base.io.checksum
-
Checksum Result 校验和结果
- Checksum(String, byte[]) - Constructor for record class cloud.opencode.base.io.checksum.Checksum
-
Creates a checksum from bytes 从字节创建校验和
- Checksum(String, byte[], String) - Constructor for record class cloud.opencode.base.io.checksum.Checksum
-
Compact constructor for validation 紧凑构造器用于验证
- checksumFailed(String, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a checksum failed exception 创建校验和计算失败异常
- Chunk(long, long, byte[], int, boolean) - Constructor for record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Compact constructor - defensive copy of mutable byte array.
- ChunkedFileProcessor - Class in cloud.opencode.base.io.file
-
Chunked File Processor - Memory-efficient large file processing 大文件分块处理器 - 内存高效的大文件处理
- ChunkedFileProcessor.Builder - Class in cloud.opencode.base.io.file
-
Builder for ChunkedFileProcessor operations.
- ChunkedFileProcessor.Chunk - Record Class in cloud.opencode.base.io.file
-
Represents a chunk of file data.
- chunkSize(int) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the chunk size.
- CLASSPATH_PREFIX - Static variable in interface cloud.opencode.base.io.resource.ResourceLoader
-
Classpath prefix 类路径前缀
- classPathResource(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Creates a classpath resource 创建类路径资源
- ClassPathResource - Class in cloud.opencode.base.io.resource
-
Classpath Resource Implementation 类路径资源实现
- ClassPathResource(String) - Constructor for class cloud.opencode.base.io.resource.ClassPathResource
-
Creates a classpath resource with default classloader 使用默认类加载器创建类路径资源
- ClassPathResource(String, ClassLoader) - Constructor for class cloud.opencode.base.io.resource.ClassPathResource
-
Creates a classpath resource with specific classloader 使用指定类加载器创建类路径资源
- cleanupOldTempFiles(Path, Duration, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Cleans up old temporary files 清理过期临时文件
- cleanupOldTempFiles(Duration, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Cleans up all files matching pattern in temp directory 清理临时目录中匹配模式的所有文件
- close() - Method in class cloud.opencode.base.io.file.FileWatcher
- close() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
- close() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
- close() - Method in class cloud.opencode.base.io.stream.ReaderInputStream
-
Closes the stream and the underlying reader 关闭流和底层的Reader
- close() - Method in class cloud.opencode.base.io.stream.TeeInputStream
- close() - Method in class cloud.opencode.base.io.stream.WriterOutputStream
-
Closes the stream, flushing any remaining bytes, and closes the writer 关闭流,刷新所有剩余字节,并关闭Writer
- close() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
- closeQuietly(Closeable) - Static method in class cloud.opencode.base.io.OpenStream
-
Closes safely, ignoring exceptions 安全关闭,忽略异常
- closeQuietly(Closeable...) - Static method in class cloud.opencode.base.io.OpenStream
-
Closes multiple closeables safely 安全关闭多个可关闭对象
- cloud.opencode.base.io - module cloud.opencode.base.io
-
OpenCode Base IO Module OpenCode 基础 IO 模块
- cloud.opencode.base.io - package cloud.opencode.base.io
- cloud.opencode.base.io.batch - package cloud.opencode.base.io.batch
- cloud.opencode.base.io.checksum - package cloud.opencode.base.io.checksum
- cloud.opencode.base.io.compress - package cloud.opencode.base.io.compress
- cloud.opencode.base.io.exception - package cloud.opencode.base.io.exception
- cloud.opencode.base.io.file - package cloud.opencode.base.io.file
- cloud.opencode.base.io.hex - package cloud.opencode.base.io.hex
- cloud.opencode.base.io.lock - package cloud.opencode.base.io.lock
- cloud.opencode.base.io.progress - package cloud.opencode.base.io.progress
- cloud.opencode.base.io.resource - package cloud.opencode.base.io.resource
- cloud.opencode.base.io.serialization - package cloud.opencode.base.io.serialization
- cloud.opencode.base.io.source - package cloud.opencode.base.io.source
- cloud.opencode.base.io.stream - package cloud.opencode.base.io.stream
- cloud.opencode.base.io.temp - package cloud.opencode.base.io.temp
- collect() - Method in class cloud.opencode.base.io.file.LineProcessor
-
Collects all processed lines into a list 将所有处理后的行收集到列表中
- collectByExtension(Path, String...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Collect files by extension 按扩展名收集文件
- collectFiles(Path) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Collect files from directory 从目录收集文件
- collectGlob(Path, String) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Collect files matching glob pattern 收集匹配 glob 模式的文件
- comment(String) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Sets the archive comment 设置归档注释
- common() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns the value of the
commonrecord component. - compareDirectories(Path, Path) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two directories.
- compareDirectories(Path, Path, Predicate) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two directories with a filter.
- completed(long) - Static method in class cloud.opencode.base.io.progress.DownloadProgress
-
Creates a completed progress.
- compress(byte[]) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Compresses a byte array using Gzip 使用Gzip压缩字节数组
- compress(InputStream) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Compresses data from an InputStream using Gzip 使用Gzip压缩输入流中的数据
- compress(Path, Path) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Compresses a file using Gzip 使用Gzip压缩文件
- compressedSize() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
compressedSizerecord component. - compressionLevel(int) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Sets the compression level (0-9) 设置压缩级别(0-9)
- compressStream(InputStream) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Returns a compressed InputStream that wraps the given input 返回一个包装给定输入的压缩InputStream
- computeHash(Path, String) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Computes the hash of a file.
- computeHashHex(Path, String) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Computes the hash of a file as hexadecimal string.
- concat(ByteSource...) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Returns a concatenated ByteSource.
- concat(CharSource...) - Static method in class cloud.opencode.base.io.source.CharSource
-
Returns a concatenated CharSource.
- concat(Iterable) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Returns a concatenated ByteSource.
- concat(Iterable) - Static method in class cloud.opencode.base.io.source.CharSource
-
Returns a concatenated CharSource.
- containsEntry(Path, String) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Checks whether a zip archive contains an entry with the given name 检查zip归档中是否包含给定名称的条目
- content() - Method in record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Returns the value of the
contentrecord component. - contentEquals(ByteSource) - Method in class cloud.opencode.base.io.source.ByteSource
-
Checks if this source has the same content as another.
- contentEquals(CharSource) - Method in class cloud.opencode.base.io.source.CharSource
-
Checks if this source has the same content as another.
- contentEquals(InputStream, InputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Compares two input streams for content equality 比较两个输入流的内容是否相同
- contentEquals(Reader, Reader) - Static method in class cloud.opencode.base.io.OpenStream
-
Compares two readers for content equality 比较两个Reader的内容是否相同
- contentEquals(Path, Path) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two files byte-by-byte.
- contentEquals(Path, Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Checks if two files have equal content.
- contentLength() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- contentLength() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- contentLength() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the content length in bytes 获取内容长度(字节)
- contentLength() - Method in class cloud.opencode.base.io.resource.UrlResource
- copy(InputStream, OutputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Copies input stream to output stream 复制输入流到输出流
- copy(InputStream, OutputStream, int) - Static method in class cloud.opencode.base.io.OpenStream
-
Copies input stream to output stream with buffer size 使用指定缓冲区大小复制输入流到输出流
- copy(Reader, Writer) - Static method in class cloud.opencode.base.io.OpenStream
-
Copies Reader to Writer 复制Reader到Writer
- copy(Path, Path) - Static method in class cloud.opencode.base.io.file.FileCopier
-
Copies a file directly 直接复制文件
- copy(Path, Path, CopyOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Copies a file 复制文件
- copyAll(Collection, Path, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Copy all files to target directory 复制所有文件到目标目录
- copyAll(Collection, Path, CopyOption...) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Copy all files in parallel 并行复制所有文件
- copyAll(Collection, Path, Predicate, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Copy files matching filter to target directory 复制匹配过滤器的文件到目标目录
- copyAttributes() - Method in class cloud.opencode.base.io.file.FileCopier
-
Enables copy attributes 启用复制属性
- copyFailed(Path, Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a copy failed exception 创建复制失败异常
- copyGlob(Path, String, Path, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Copy files matching glob pattern 复制匹配 glob 模式的文件
- copyInChunks(Path, Path, int, BiConsumer) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Copies a file in chunks.
- copyRecursively(Path, Path, CopyOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Copies directory recursively 递归复制目录
- copyReplace(Path, Path) - Static method in class cloud.opencode.base.io.file.FileCopier
-
Copies a file with replace option 使用替换选项复制文件
- copyTo(ByteSink) - Method in class cloud.opencode.base.io.source.ByteSource
-
Copies the contents to a ByteSink.
- copyTo(CharSink) - Method in class cloud.opencode.base.io.source.CharSource
-
Copies the contents to a CharSink.
- copyTo(OutputStream) - Method in class cloud.opencode.base.io.source.ByteSource
-
Copies the contents to an OutputStream.
- copyTo(Writer) - Method in class cloud.opencode.base.io.source.CharSource
-
Copies the contents to a Writer.
- copyTo(Appendable) - Method in class cloud.opencode.base.io.source.CharSource
-
Copies the contents to an Appendable.
- copyToFile(InputStream, Path) - Static method in class cloud.opencode.base.io.OpenStream
-
Copies input stream to file 复制输入流到文件
- copyVisitor(Path, Path, CopyOption...) - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates a copy visitor that copies files and directories 创建复制文件和目录的复制访问器
- count() - Method in class cloud.opencode.base.io.file.LineProcessor
-
Counts the number of processed lines 统计处理后的行数
- count() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Counts matching paths.
- countChunks(Path, int) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Counts the number of chunks in a file.
- CountingInputStream - Class in cloud.opencode.base.io.stream
-
Counting Input Stream 计数输入流
- CountingInputStream(InputStream) - Constructor for class cloud.opencode.base.io.stream.CountingInputStream
-
Creates a counting input stream 创建计数输入流
- countingVisitor() - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates a counting visitor that counts files and directories 创建统计文件和目录的计数访问器
- CountingVisitor() - Constructor for class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
- countLines() - Method in class cloud.opencode.base.io.source.CharSource
-
Counts the number of lines.
- crc() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
crcrecord component. - crc32(byte[]) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates CRC32 checksum for byte array 计算字节数组的CRC32校验和
- crc32(InputStream) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates CRC32 checksum for an input stream 计算输入流的CRC32校验和
- crc32(Path) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates CRC32 checksum for a file 计算文件的CRC32校验和
- createAutoDeleteTempFile(String, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates an auto-delete temporary file 创建自动删除临时文件
- createAutoDeleteTempFile(Path, String, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates an auto-delete temporary file in specified directory 在指定目录创建自动删除临时文件
- createDirectories(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Creates directories including parents 创建目录(包含父目录)
- createDirectory(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Creates a directory 创建目录
- createDirectoryFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a create directory failed exception 创建目录创建失败异常
- createFile(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Creates a file 创建文件
- createFileFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a create file failed exception 创建文件创建失败异常
- createParentDirectories(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Creates parent directories if they don't exist.
- createRelative(String) - Method in class cloud.opencode.base.io.resource.ClassPathResource
- createRelative(String) - Method in class cloud.opencode.base.io.resource.FileSystemResource
- createRelative(String) - Method in interface cloud.opencode.base.io.resource.Resource
-
Creates a relative resource 创建相对资源
- createRelative(String) - Method in class cloud.opencode.base.io.resource.UrlResource
- createTempDirectory(String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates a temporary directory 创建临时目录
- createTempDirectory(Path, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates a temporary directory in specified parent 在指定父目录创建临时目录
- createTempFile(String, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates a temporary file 创建临时文件
- createTempFile(Path, String, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates a temporary file in specified directory 在指定目录创建临时文件
- createTempFileFromStream(InputStream, String, String) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Creates a temporary file from input stream 从输入流创建临时文件
D
- data() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns the value of the
datarecord component. - decompress(byte[]) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses a Gzip-compressed byte array 解压缩Gzip压缩的字节数组
- decompress(byte[], long) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses a Gzip-compressed byte array with a size limit 带大小限制解压缩Gzip压缩的字节数组
- decompress(InputStream) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses data from a Gzip-compressed InputStream 从Gzip压缩的输入流中解压缩数据
- decompress(InputStream, long) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses data from a Gzip-compressed InputStream with a size limit 带大小限制从Gzip压缩的输入流中解压缩数据
- decompress(Path, Path) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses a Gzip file 解压缩Gzip文件
- decompress(Path, Path, long) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Decompresses a Gzip file with a size limit 带大小限制解压缩Gzip文件
- decompressStream(InputStream) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Returns a decompressed InputStream that wraps the given compressed input 返回一个包装给定压缩输入的解压缩InputStream
- DEFAULT_BUFFER_SIZE - Static variable in class cloud.opencode.base.io.OpenStream
-
Default buffer size (8KB) 默认缓冲区大小(8KB)
- DEFAULT_CHUNK_SIZE - Static variable in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Default chunk size: 4MB
- DEFAULT_MAX_DECOMPRESSED_SIZE - Static variable in class cloud.opencode.base.io.compress.GzipUtil
-
Default maximum decompressed size (256 MB) to guard against gzip bombs 默认最大解压大小(256 MB),防止gzip炸弹
- DEFAULT_PARALLELISM - Static variable in class cloud.opencode.base.io.batch.OpenBatch
-
Default parallelism (number of processors) 默认并行度(处理器数量)
- DefaultResourceLoader - Class in cloud.opencode.base.io.resource
-
Default Resource Loader Implementation 默认资源加载器实现
- DefaultResourceLoader() - Constructor for class cloud.opencode.base.io.resource.DefaultResourceLoader
-
Creates a default resource loader 创建默认资源加载器
- DefaultResourceLoader(ClassLoader) - Constructor for class cloud.opencode.base.io.resource.DefaultResourceLoader
-
Creates a resource loader with specific classloader 使用指定类加载器创建资源加载器
- delete() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Deletes the file immediately 立即删除文件
- delete(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Deletes a file or empty directory 删除文件或空目录
- deleteAll(Collection) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Delete all files 删除所有文件
- deleteAll(Collection) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Delete all files in parallel 并行删除所有文件
- deleteAll(Collection, Predicate) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Delete files matching filter 删除匹配过滤器的文件
- deleteDirectoryIfEmpty(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Deletes a directory only if it's empty.
- deleteFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a delete failed exception 创建删除失败异常
- deleteGlob(Path, String) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Delete files matching glob pattern 删除匹配 glob 模式的文件
- deleteIfExists(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Deletes if exists, returning whether deletion occurred.
- deleteIfExists(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Deletes file if exists 删除文件(如果存在)
- deleteRecursively(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Deletes a file or directory recursively.
- deleteRecursively(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Deletes directory recursively 递归删除目录
- deleteRecursively(Path, Predicate) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Deletes files recursively that match the filter.
- deleteVisitor() - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates a delete visitor that removes all files and directories 创建删除所有文件和目录的删除访问器
- detect(Path) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Detect MIME type from file (combines extension and content detection) 从文件检测 MIME 类型(综合扩展名和内容检测)
- detectByExtension(Path) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Detect MIME type preferring extension over content 优先使用扩展名检测 MIME 类型
- differenceCount() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns the total number of differences.
- different() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns the value of the
differentrecord component. - diffLines(Path, Path) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Generates a diff between two text files using UTF-8.
- diffLines(Path, Path, Charset) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Generates a diff between two text files.
- digest(byte[], String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates digest for byte array 计算字节数组的摘要
- digest(InputStream, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates digest for an input stream 计算输入流的摘要
- digest(Path, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates digest for a file using specified algorithm 使用指定算法计算文件的摘要
- directoriesOnly() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Filters for directories only.
- DirectoryDiff(Set, Set, Set, Set) - Constructor for record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Creates an instance of a
DirectoryDiffrecord class. - directorySize(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Gets directory size recursively 递归获取目录大小
- DownloadProgress - Class in cloud.opencode.base.io.progress
-
Download Progress - Download Progress Information 下载进度 - 下载进度信息
- DownloadProgress(long, long, double, long, long) - Constructor for class cloud.opencode.base.io.progress.DownloadProgress
-
Creates a download progress.
- drain(InputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Drains all remaining bytes from input stream 排空输入流中的所有剩余字节
- duration() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Get operation duration 获取操作耗时
E
- elapsedMs() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the value of the
elapsedMsrecord component. - empty() - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates an empty ByteSource.
- empty() - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates an empty CharSource.
- endTime() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
endTimerecord component. - equals(Object) - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class cloud.opencode.base.io.progress.DownloadProgress
- equals(Object) - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class cloud.opencode.base.io.resource.ClassPathResource
- equals(Object) - Method in class cloud.opencode.base.io.resource.FileSystemResource
- equals(Object) - Method in class cloud.opencode.base.io.resource.UrlResource
- execute() - Method in class cloud.opencode.base.io.file.FileCopier
-
Executes the copy operation 执行复制操作
- execute(String, Collection, OpenBatch.PathAction) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Execute custom operation in parallel 并行执行自定义操作
- execute(Path) - Method in interface cloud.opencode.base.io.batch.OpenBatch.PathAction
-
Execute action on path 在路径上执行操作
- exists() - Method in class cloud.opencode.base.io.file.FileReader
-
Checks if file exists 检查文件是否存在
- exists() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- exists() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- exists() - Method in interface cloud.opencode.base.io.resource.Resource
-
Checks if the resource exists 检查资源是否存在
- exists() - Method in class cloud.opencode.base.io.resource.UrlResource
- exists() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Checks if the file exists 检查文件是否存在
- exists(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Checks if resource exists 检查资源是否存在
- exists(Path, LinkOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path exists 检查路径是否存在
F
- failedPaths() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Get failed paths 获取失败的路径
- failure(Path, Throwable) - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Record a failure 记录失败
- failureCount() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
failureCountrecord component. - failures() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
failuresrecord component. - FastByteArrayOutputStream - Class in cloud.opencode.base.io.stream
-
Fast Byte Array Output Stream 高性能字节数组输出流
- FastByteArrayOutputStream() - Constructor for class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Creates a stream with default capacity 创建默认容量的流
- FastByteArrayOutputStream(int) - Constructor for class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Creates a stream with specified initial capacity 创建指定初始容量的流
- FILE_PREFIX - Static variable in interface cloud.opencode.base.io.resource.ResourceLoader
-
File prefix 文件前缀
- FileBackedOutputStream - Class in cloud.opencode.base.io.stream
-
File-Backed Output Stream 文件后备输出流
- FileBackedOutputStream(int) - Constructor for class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Creates a file-backed output stream with default temp directory 创建使用默认临时目录的文件后备输出流
- FileBackedOutputStream(int, Path) - Constructor for class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Creates a file-backed output stream with custom temp directory 创建使用自定义临时目录的文件后备输出流
- FileComparator - Class in cloud.opencode.base.io.file
-
File Content Comparator - Compares files by content 文件内容比较器 - 按内容比较文件
- FileComparator.DirectoryDiff - Record Class in cloud.opencode.base.io.file
-
Result of comparing two directories.
- FileComparator.LineChange - Record Class in cloud.opencode.base.io.file
-
A line change between two files.
- FileComparator.LineDiff - Record Class in cloud.opencode.base.io.file
-
Result of comparing lines between two files.
- FileComparator.LineEntry - Record Class in cloud.opencode.base.io.file
-
A line entry with line number.
- FileCopier - Class in cloud.opencode.base.io.file
-
File Copier Utility 文件复制器
- FileEvent(Path, WatchEvent.Kind) - Constructor for record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Creates an instance of a
FileEventrecord class. - fileName() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the value of the
fileNamerecord component. - fileNotFound(Path) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a file not found exception 创建文件未找到异常
- FileReader - Class in cloud.opencode.base.io.file
-
File Reader Utility 文件读取器
- fileResource(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Creates a filesystem resource from string 从字符串创建文件系统资源
- fileResource(Path) - Static method in class cloud.opencode.base.io.OpenResource
-
Creates a filesystem resource 创建文件系统资源
- filesOnly() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Filters for regular files only.
- FileSystemResource - Class in cloud.opencode.base.io.resource
-
File System Resource Implementation 文件系统资源实现
- FileSystemResource(String) - Constructor for class cloud.opencode.base.io.resource.FileSystemResource
-
Creates a file system resource from string path 从字符串路径创建文件系统资源
- FileSystemResource(Path) - Constructor for class cloud.opencode.base.io.resource.FileSystemResource
-
Creates a file system resource from path 从路径创建文件系统资源
- fileTree(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Creates a file tree traversal builder.
- FileWatcher - Class in cloud.opencode.base.io.file
-
File Watcher 文件监听器
- FileWatcher.FileEvent - Record Class in cloud.opencode.base.io.file
-
File Event 文件事件
- FileWriter - Class in cloud.opencode.base.io.file
-
File Writer Utility 文件写入器
- filter(String) - Method in class cloud.opencode.base.io.file.FileWatcher
-
Sets file name filter pattern 设置文件名过滤模式
- filter(Predicate) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Filters lines matching the predicate 过滤匹配谓词的行
- filter(Predicate) - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Sets file filter.
- filteredVisitor(BiPredicate, Consumer) - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates a filtered action visitor 创建带过滤器的操作访问器
- find(Path, int, BiPredicate) - Static method in class cloud.opencode.base.io.OpenIO
-
Finds files with custom matcher 使用自定义匹配器查找文件
- find(Path, String) - Static method in class cloud.opencode.base.io.OpenIO
-
Finds files matching regex pattern 查找匹配正则表达式的文件
- findFirst() - Method in class cloud.opencode.base.io.file.LineProcessor
-
Finds the first processed line 查找第一个处理后的行
- firstLine() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads first line of file 读取文件首行
- flush() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
- flush() - Method in class cloud.opencode.base.io.stream.WriterOutputStream
-
Flushes the stream by decoding any buffered bytes and flushing the writer 通过解码所有缓冲的字节并刷新Writer来刷新流
- flushBranch() - Method in class cloud.opencode.base.io.stream.TeeInputStream
-
Flushes the branch output stream 刷新分支输出流
- followSymlinks() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Follows symbolic links.
- forEach(Consumer) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Applies the action to each processed line 对每个处理后的行应用操作
- forEach(Consumer) - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Applies action to each matching path.
- forEachLine(Consumer) - Method in class cloud.opencode.base.io.source.CharSource
-
Processes each line with a consumer.
- format(byte[]) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats an entire byte array as hex dump 将整个字节数组格式化为十六进制转储
- format(byte[], int, int) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats a range of a byte array as hex dump 将字节数组的指定范围格式化为十六进制转储
- format(InputStream) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats data from an InputStream as hex dump, reading up to MAX_DEFAULT_BYTES 从InputStream格式化数据为十六进制转储,最多读取MAX_DEFAULT_BYTES字节
- format(InputStream, int) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats data from an InputStream as hex dump with a byte limit 从InputStream格式化数据为十六进制转储,带字节限制
- format(Path) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats the contents of a file as hex dump, reading up to MAX_DEFAULT_BYTES 将文件内容格式化为十六进制转储,最多读取MAX_DEFAULT_BYTES字节
- format(Path, long, int) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Formats a range of a file as hex dump 将文件的指定范围格式化为十六进制转储
- formattedDownloadedBytes() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets formatted downloaded bytes.
- formattedPercentage() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets formatted percentage.
- formattedPercentage() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the upload percentage as a formatted string (e.g., "42.5%").
- formattedRemainingTime() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets formatted remaining time.
- formattedSpeed() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets formatted speed.
- formattedTotalBytes() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets formatted total bytes.
- from(String) - Static method in class cloud.opencode.base.io.file.FileCopier
-
Creates a file copier from source string 从源字符串创建文件复制器
- from(Path) - Static method in class cloud.opencode.base.io.file.FileCopier
-
Creates a file copier from source 从源创建文件复制器
- fromContent(byte[]) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Detect MIME type from byte array content 从字节数组内容检测 MIME 类型
- fromContent(InputStream) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Detect MIME type from input stream 从输入流检测 MIME 类型
- fromContent(Path) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Detect MIME type from file content (magic numbers) 从文件内容检测 MIME 类型(魔数)
- fromExtension(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Get MIME type from file extension 从文件扩展名获取 MIME 类型
- fromExtension(String, String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Get MIME type from file extension with default 从文件扩展名获取 MIME 类型(带默认值)
- fromFilename(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Get MIME type from filename 从文件名获取 MIME 类型
- fromHex(String) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Parses a hex string back to a byte array 将十六进制字符串解析回字节数组
- fromHex(String, String) - Static method in record class cloud.opencode.base.io.checksum.Checksum
-
Creates a checksum from hex string 从十六进制字符串创建校验和
- fromPath(Path) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Get MIME type from path extension 从路径扩展名获取 MIME 类型
- fromPath(Path) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates a ByteSource from a file path.
- fromPath(Path) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a file path with UTF-8 encoding.
- fromPath(Path, Charset) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a file path.
- fromResource(String) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates a ByteSource from a classpath resource.
- fromResource(String) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a classpath resource with UTF-8 encoding.
- fromResource(String, ClassLoader) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates a ByteSource from a classpath resource.
- fromResource(String, Charset) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a classpath resource.
- fromResource(String, Charset, ClassLoader) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a classpath resource.
- fromUrl(URL) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates a ByteSource from a URL.
- fromUrl(URL) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a URL with UTF-8 encoding.
- fromUrl(URL, Charset) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a URL.
G
- getBranch() - Method in class cloud.opencode.base.io.stream.TeeInputStream
-
Gets the branch output stream 获取分支输出流
- getBuffer() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Gets the internal buffer (for advanced use) 获取内部缓冲区(高级用法)
- getBytesRead() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
-
Gets the number of bytes read 获取已读取字节数
- getChannel() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
-
Get the underlying FileChannel 获取底层 FileChannel
- getClassLoader() - Method in class cloud.opencode.base.io.resource.ClassPathResource
-
Gets the classloader 获取类加载器
- getClassLoader() - Method in class cloud.opencode.base.io.resource.DefaultResourceLoader
- getClassLoader() - Method in interface cloud.opencode.base.io.resource.ResourceLoader
-
Gets the ClassLoader used by this loader 获取此加载器使用的ClassLoader
- getClassPath() - Method in class cloud.opencode.base.io.resource.ClassPathResource
-
Gets the classpath 获取类路径
- getCount() - Method in class cloud.opencode.base.io.stream.CountingInputStream
-
Gets the number of bytes read 获取已读取字节数
- getDefault() - Static method in interface cloud.opencode.base.io.resource.ResourceLoader
-
Gets the default resource loader 获取默认资源加载器
- getDescription() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- getDescription() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- getDescription() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets a description of the resource 获取资源描述
- getDescription() - Method in class cloud.opencode.base.io.resource.UrlResource
- getDirectoryCount() - Method in class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
-
Gets directory count 获取目录数量
- getDownloadedBytes() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets the downloaded bytes.
- getExtension(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Get file extension for MIME type 获取 MIME 类型对应的文件扩展名
- getExtension(String) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets the file extension from filename 从文件名获取扩展名
- getExtension(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets the file extension 获取文件扩展名
- getFailure(Path) - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Get exception for a specific path 获取特定路径的异常
- getFile() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Returns the temp file path, or null if data is in memory 返回临时文件路径,如果数据在内存中则返回null
- getFileCount() - Method in class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
-
Gets file count 获取文件数量
- getFileExtension(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Gets file extension (with dot).
- getFilename() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- getFilename() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- getFilename() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the filename of the resource 获取资源的文件名
- getFilename() - Method in class cloud.opencode.base.io.resource.UrlResource
- getFileName(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets file name from path 从路径获取文件名
- getFilePath() - Method in class cloud.opencode.base.io.resource.FileSystemResource
-
Gets the file path 获取文件路径
- getInputStream() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- getInputStream() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- getInputStream() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the input stream for reading the resource 获取用于读取资源的输入流
- getInputStream() - Method in class cloud.opencode.base.io.resource.UrlResource
- getInputStream() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Returns an InputStream to read all written data 返回用于读取所有已写入数据的InputStream
- getLastModifiedTime(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Gets last modified time 获取最后修改时间
- getLock() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
-
Get the underlying FileLock 获取底层 FileLock
- getLockFilePath(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Get lock file path for a resource 获取资源的锁文件路径
- getMaxSize() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
-
Gets the maximum size limit 获取最大大小限制
- getNameCount(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets path name count 获取路径名称数量
- getNameWithoutExtension(String) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets filename without extension from filename string 从文件名字符串获取不含扩展名的文件名
- getNameWithoutExtension(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Gets filename without extension.
- getNameWithoutExtension(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets filename without extension 获取不含扩展名的文件名
- getParent(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets parent directory 获取父目录
- getPath() - Method in class cloud.opencode.base.io.file.FileReader
-
Gets the path 获取路径
- getPath() - Method in class cloud.opencode.base.io.file.FileWriter
-
Gets the path 获取路径
- getPath() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
-
Get the locked file path 获取锁定的文件路径
- getPath() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- getPath() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- getPath() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the file path if available 获取文件路径(如果可用)
- getPath() - Method in class cloud.opencode.base.io.resource.UrlResource
- getPath() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Gets the file path 获取文件路径
- getPercentage() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets the completion percentage.
- getRemaining() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
-
Gets the remaining bytes that can be read 获取剩余可读字节数
- getRemainingTime() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets the remaining time.
- getResource(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Gets resource URL 获取资源URL
- getResource(String) - Method in class cloud.opencode.base.io.resource.DefaultResourceLoader
- getResource(String) - Method in interface cloud.opencode.base.io.resource.ResourceLoader
-
Loads a resource from the given location 从给定位置加载资源
- getResourceLoader() - Static method in class cloud.opencode.base.io.OpenResource
-
Gets the resource loader 获取资源加载器
- getResourceRequired(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Gets resource URL (required) 获取资源URL(必须存在)
- getResources(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Gets all matching resource URLs 获取所有匹配的资源URL
- getRoot(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets root path 获取根路径
- getSource() - Method in class cloud.opencode.base.io.file.FileCopier
-
Gets the source path 获取源路径
- getSpeed() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets the download speed.
- getStream(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Gets resource input stream 获取资源输入流
- getTarget() - Method in class cloud.opencode.base.io.file.FileCopier
-
Gets the target path 获取目标路径
- getTempDirectory() - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Gets the system temp directory 获取系统临时目录
- getTotalBytes() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Gets the total bytes.
- getTotalCount() - Method in class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
-
Gets total count 获取总数量
- getTotalSize() - Method in class cloud.opencode.base.io.OpenFileVisitors.SizeVisitor
-
Gets total size 获取总大小
- getURI() - Method in class cloud.opencode.base.io.resource.UrlResource
-
Gets the URI 获取URI
- getURL() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- getURL() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- getURL() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the URL of the resource 获取资源的URL
- getURL() - Method in class cloud.opencode.base.io.resource.UrlResource
- getWatchPath() - Method in class cloud.opencode.base.io.file.FileWatcher
-
Gets the watch path 获取监听路径
- glob(String) - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Filters by glob pattern.
- glob(Path, String) - Static method in class cloud.opencode.base.io.OpenIO
-
Finds files matching glob pattern 查找匹配glob模式的文件
- grep(String) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Filters lines matching the given regex pattern 过滤匹配给定正则表达式模式的行
- GzipUtil - Class in cloud.opencode.base.io.compress
-
Gzip Compression/Decompression Utility Gzip压缩/解压缩工具类
H
- hasFailures() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Check if any operation failed 检查是否有失败
- hash(String) - Method in class cloud.opencode.base.io.source.ByteSource
-
Computes the hash of the contents using the specified algorithm.
- hashCode() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Returns a hash code value for this object.
- hashCode() - Method in class cloud.opencode.base.io.progress.DownloadProgress
- hashCode() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns a hash code value for this object.
- hashCode() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- hashCode() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- hashCode() - Method in class cloud.opencode.base.io.resource.UrlResource
- hashEquals(Path, Path, String) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two files using hash.
- hex() - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Returns the value of the
hexrecord component. - HexDump - Class in cloud.opencode.base.io.hex
-
Hex Dump Utility 十六进制转储工具
I
- incrementSkipped() - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Increment skip count atomically 原子递增跳过计数
- incrementSuccess() - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Increment success count atomically 原子递增成功计数
- index() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns the value of the
indexrecord component. - INSTANCE - Static variable in class cloud.opencode.base.io.resource.DefaultResourceLoader
-
Singleton instance 单例实例
- invalidPath(String, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates an invalid path exception 创建无效路径异常
- isAbsolute(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Checks if path is absolute 检查是否为绝对路径
- isAllSuccess() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Check if all operations succeeded 检查是否全部成功
- isAudio(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Check if MIME type is audio 检查 MIME 类型是否为音频
- isBinary(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Check if MIME type is binary 检查 MIME 类型是否为二进制
- isComplete() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Checks if download is complete.
- isCreate() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Checks if this is a create event 检查是否为创建事件
- isDelete() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Checks if this is a delete event 检查是否为删除事件
- isDirectory() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
isDirectoryrecord component. - isDirectory(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is a directory 检查路径是否为目录
- isEmpty() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns true if there are no differences.
- isEmpty() - Method in class cloud.opencode.base.io.source.ByteSource
-
Checks if the source is empty.
- isEmpty() - Method in class cloud.opencode.base.io.source.CharSource
-
Checks if the source is empty.
- isEmptyDirectory(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Checks if a directory is empty.
- isEmptyDirectory(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if directory is empty 检查目录是否为空
- isExclusivelyLocked(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Check if file is locked with shared lock 检查文件是否被共享锁定
- isFile(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is a file 检查路径是否为文件
- isGzipped(byte[]) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Checks if the given byte array starts with Gzip magic bytes 检查给定的字节数组是否以Gzip魔数开头
- isGzipped(Path) - Static method in class cloud.opencode.base.io.compress.GzipUtil
-
Checks if the file at the given path starts with Gzip magic bytes 检查给定路径的文件是否以Gzip魔数开头
- isHidden(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is hidden 检查路径是否隐藏
- isIdentical() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns true if directories are identical.
- isImage(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Check if MIME type is image 检查 MIME 类型是否为图片
- isInMemory() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Checks whether data is still in memory 检查数据是否仍在内存中
- isInTempDirectory(Path) - Static method in class cloud.opencode.base.io.temp.OpenTempFile
-
Checks if a path is in the temp directory 检查路径是否在临时目录中
- isLast() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns the value of the
isLastrecord component. - isLimitReached() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
-
Checks if the limit has been reached 检查是否已达到限制
- isLocked(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Check if file is locked 检查文件是否被锁定
- isModify() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Checks if this is a modify event 检查是否为修改事件
- isPartialSuccess() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Check if operation was partially successful 检查是否部分成功
- isReadable() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- isReadable() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- isReadable() - Method in interface cloud.opencode.base.io.resource.Resource
-
Checks if the resource is readable 检查资源是否可读
- isReadable() - Method in class cloud.opencode.base.io.resource.UrlResource
- isReadable(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is readable 检查路径是否可读
- isRunning() - Method in class cloud.opencode.base.io.file.FileWatcher
-
Checks if watcher is running 检查监听器是否正在运行
- isSameFile(Path, Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if two paths point to the same file 检查两个路径是否指向同一文件
- isSameFile(Path, Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Checks if two paths point to the same file 检查两个路径是否指向同一文件
- isShared() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
-
Check if this is a shared lock 检查是否为共享锁
- isSubPath(Path, Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Checks if child is a sub path of parent 检查子路径是否为父路径的子路径
- isSymbolicLink(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is a symbolic link 检查路径是否为符号链接
- isText(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Check if MIME type is text-based 检查 MIME 类型是否为文本类型
- isTotalKnown() - Method in class cloud.opencode.base.io.progress.DownloadProgress
-
Checks if total size is known.
- isValid() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
-
Check if lock is still valid 检查锁是否仍然有效
- isVideo(String) - Static method in class cloud.opencode.base.io.OpenMimeType
-
Check if MIME type is video 检查 MIME 类型是否为视频
- isWritable(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Checks if path is writable 检查路径是否可写
J
- join(String, String...) - Static method in class cloud.opencode.base.io.OpenPath
-
Joins multiple path segments 连接多个路径段
- join(Path, String...) - Static method in class cloud.opencode.base.io.OpenPath
-
Joins path with more segments 连接路径与更多段
K
- kind() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Returns the value of the
kindrecord component.
L
- lastBytes(Path, int) - Static method in class cloud.opencode.base.io.file.TailReader
-
Reads the last N bytes of a file 读取文件的最后N个字节
- lastLine() - Method in class cloud.opencode.base.io.file.FileReader
-
Reads last line of file 读取文件末行
- lastLines(Path, int) - Static method in class cloud.opencode.base.io.file.TailReader
-
Reads the last N lines of a file using UTF-8 charset 使用UTF-8字符集读取文件的最后N行
- lastLines(Path, int, Charset) - Static method in class cloud.opencode.base.io.file.TailReader
-
Reads the last N lines of a file with the specified charset 使用指定字符集读取文件的最后N行
- lastModified() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
lastModifiedrecord component. - lastModified() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- lastModified() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- lastModified() - Method in interface cloud.opencode.base.io.resource.Resource
-
Gets the last modified time 获取最后修改时间
- lastModified() - Method in class cloud.opencode.base.io.resource.UrlResource
- length() - Method in class cloud.opencode.base.io.source.CharSource
-
Returns the length of this source in characters.
- lengthIfKnown() - Method in class cloud.opencode.base.io.source.CharSource
-
Returns the length of this source in characters, if known.
- limit(long) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Limits the number of lines to process 限制要处理的行数
- LineChange(int, String, String) - Constructor for record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Creates an instance of a
LineChangerecord class. - LineDiff(List, List, List) - Constructor for record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Creates an instance of a
LineDiffrecord class. - LineEntry(int, String) - Constructor for record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Creates an instance of a
LineEntryrecord class. - lineNumber() - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Returns the value of the
lineNumberrecord component. - lineNumber() - Method in record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Returns the value of the
lineNumberrecord component. - LineProcessor - Class in cloud.opencode.base.io.file
-
Fluent Line-by-Line File Processor 流式逐行文件处理器
- lines() - Method in class cloud.opencode.base.io.source.CharSource
-
Returns a stream of lines.
- lines(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Returns a stream of lines from file (UTF-8) 返回文件的行流(UTF-8)
- lines(Path, Charset) - Static method in class cloud.opencode.base.io.OpenIO
-
Returns a stream of lines from file 返回文件的行流
- linesEqual(Path, Path) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two text files line by line using UTF-8.
- linesEqual(Path, Path, Charset) - Static method in class cloud.opencode.base.io.file.FileComparator
-
Compares two text files line by line.
- list(Path) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Lists all entries in a zip archive 列出zip归档中的所有条目
- list(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Lists directory contents 列出目录内容
- listDirectoriesRecursively(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Returns all directories under the path recursively.
- listFilesRecursively(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Returns all files (not directories) under the path recursively.
- load(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Loads resource using resource loader 使用资源加载器加载资源
- lock(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Acquire exclusive lock on file 获取文件的独占锁
- lock(Path, boolean) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Acquire lock on file 获取文件锁
- LOCK_FILE_SUFFIX - Static variable in class cloud.opencode.base.io.lock.OpenFileLock
-
Default lock file suffix 默认锁文件后缀
- lockFile(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Create a lock file for coordination 创建用于协调的锁文件
- lockShared(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Acquire shared (read) lock on file 获取文件的共享(读)锁
M
- map(UnaryOperator) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Maps each line using the mapper function 使用映射函数映射每一行
- mark(int) - Method in class cloud.opencode.base.io.stream.BoundedInputStream
- mark(int) - Method in class cloud.opencode.base.io.stream.CountingInputStream
- marshal(T) - Method in interface cloud.opencode.base.io.serialization.Marshaller
-
Serializes a message to bytes.
- Marshaller<T> - Interface in cloud.opencode.base.io.serialization
-
Marshaller - Message Serialization Interface 编组器 - 消息序列化接口
- matcher(BiPredicate) - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Sets BiPredicate matcher with file attributes.
- matches(Checksum) - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Checks if this checksum matches another 检查此校验和是否与另一个匹配
- matches(String) - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Checks if this checksum matches a hex string 检查此校验和是否与十六进制字符串匹配
- MAX_DEFAULT_BYTES - Static variable in class cloud.opencode.base.io.hex.HexDump
-
Default maximum bytes to read for unbounded operations (1 MB) 无界操作的默认最大读取字节数(1 MB)
- MAX_ENTRIES - Static variable in class cloud.opencode.base.io.compress.ZipUtil
-
Maximum number of entries allowed in a zip archive Zip归档中允许的最大条目数
- MAX_ENTRY_NAME_LENGTH - Static variable in class cloud.opencode.base.io.compress.ZipUtil
-
Maximum entry name length allowed 允许的最大条目名长度
- MAX_MMAP_SIZE - Static variable in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Maximum chunk size for memory mapping: 1GB
- MAX_UNCOMPRESSED_SIZE - Static variable in class cloud.opencode.base.io.compress.ZipUtil
-
Maximum total uncompressed size allowed (4GB) 允许的最大总未压缩大小(4GB)
- maxBytes(long) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the maximum bytes to read.
- maxDepth(int) - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Sets maximum depth to traverse.
- md5(byte[]) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates MD5 hash for byte array 计算字节数组的MD5哈希
- md5(InputStream) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates MD5 hash for an input stream 计算输入流的MD5哈希
- md5(Path) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates MD5 hash for a file 计算文件的MD5哈希
- MIN_CHUNK_SIZE - Static variable in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Minimum chunk size: 4KB
- MoreFiles - Class in cloud.opencode.base.io.file
-
More File Utilities - Advanced file operations 更多文件工具 - 高级文件操作
- MoreFiles.FileTreeTraversal - Class in cloud.opencode.base.io.file
-
File Tree Traversal Builder 文件树遍历构建器
- move(Path, Path, CopyOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Moves a file 移动文件
- moveAll(Collection, Path, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Move all files to target directory 移动所有文件到目标目录
- moveAll(Collection, Path, CopyOption...) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Move all files in parallel 并行移动所有文件
- moveAll(Collection, Path, Predicate, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Move files matching filter to target directory 移动匹配过滤器的文件到目标目录
- moveFailed(Path, Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a move failed exception 创建移动失败异常
- moveGlob(Path, String, Path, CopyOption...) - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Move files matching glob pattern 移动匹配 glob 模式的文件
N
- name() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
namerecord component. - newContent() - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Returns the value of the
newContentrecord component. - noCreateParents() - Method in class cloud.opencode.base.io.file.FileWriter
-
Disables automatic parent directory creation 禁用自动创建父目录
- nonEmpty() - Method in class cloud.opencode.base.io.file.LineProcessor
-
Filters out empty lines (shortcut for
filter(s -> !s.isEmpty())) 过滤掉空行(filter(s -> !s.isEmpty())的快捷方式) - normalize(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Normalizes path 规范化路径
- nullSink() - Static method in class cloud.opencode.base.io.source.ByteSink
-
Creates a ByteSink that discards all written data.
- nullSink() - Static method in class cloud.opencode.base.io.source.CharSink
-
Creates a CharSink that discards all written data.
O
- of(long, long, long) - Static method in class cloud.opencode.base.io.progress.DownloadProgress
-
Creates a progress instance.
- of(String) - Static method in class cloud.opencode.base.io.file.FileReader
-
Creates a file reader for the given path string 为给定路径字符串创建文件读取器
- of(String) - Static method in class cloud.opencode.base.io.file.FileWriter
-
Creates a file writer for the given path string 为给定路径字符串创建文件写入器
- of(String) - Static method in class cloud.opencode.base.io.file.LineProcessor
-
Creates a LineProcessor for the given path string with UTF-8 charset 使用UTF-8字符集为给定路径字符串创建LineProcessor
- of(Path) - Static method in class cloud.opencode.base.io.file.FileReader
-
Creates a file reader for the given path 为给定路径创建文件读取器
- of(Path) - Static method in class cloud.opencode.base.io.file.FileWriter
-
Creates a file writer for the given path 为给定路径创建文件写入器
- of(Path) - Static method in class cloud.opencode.base.io.file.LineProcessor
-
Creates a LineProcessor for the given path with UTF-8 charset 使用UTF-8字符集为给定路径创建LineProcessor
- of(Path, Charset) - Static method in class cloud.opencode.base.io.file.LineProcessor
-
Creates a LineProcessor for the given path with specified charset 使用指定字符集为给定路径创建LineProcessor
- offset() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns the value of the
offsetrecord component. - oldContent() - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Returns the value of the
oldContentrecord component. - onAny(Consumer) - Method in class cloud.opencode.base.io.file.FileWatcher
-
Sets handler for any event 设置任意事件处理器
- onCreate(Consumer) - Method in class cloud.opencode.base.io.file.FileWatcher
-
Sets handler for create events 设置创建事件处理器
- onDelete(Consumer) - Method in class cloud.opencode.base.io.file.FileWatcher
-
Sets handler for delete events 设置删除事件处理器
- onlyInFirst() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns the value of the
onlyInFirstrecord component. - onlyInSecond() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns the value of the
onlyInSecondrecord component. - onModify(Consumer) - Method in class cloud.opencode.base.io.file.FileWatcher
-
Sets handler for modify events 设置修改事件处理器
- onProgress(OpenBatch.ProgressCallback) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Set progress callback 设置进度回调
- onProgress(Path, int, int) - Method in interface cloud.opencode.base.io.batch.OpenBatch.ProgressCallback
-
Called for each processed item 每个处理项调用
- onProgress(BiConsumer) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets a progress callback.
- OpenBatch - Class in cloud.opencode.base.io.batch
-
Batch and Parallel File Operations Utility Class 批量和并行文件操作工具类
- OpenBatch.ParallelBuilder - Class in cloud.opencode.base.io.batch
-
Parallel Batch Operation Builder 并行批量操作构建器
- OpenBatch.PathAction - Interface in cloud.opencode.base.io.batch
-
Path action interface 路径操作接口
- OpenBatch.ProgressCallback - Interface in cloud.opencode.base.io.batch
-
Progress callback interface 进度回调接口
- openBufferedStream() - Method in class cloud.opencode.base.io.source.CharSink
-
Opens a new BufferedWriter for writing.
- openBufferedStream() - Method in class cloud.opencode.base.io.source.CharSource
-
Opens a new BufferedReader for reading.
- OpenChecksum - Class in cloud.opencode.base.io.checksum
-
Checksum Utility Class 校验和工具类
- OpenFileLock - Class in cloud.opencode.base.io.lock
-
File Locking Utility Class 文件锁定工具类
- OpenFileLock.FileLockHandle - Class in cloud.opencode.base.io.lock
-
File Lock Handle 文件锁句柄
- OpenFileVisitors - Class in cloud.opencode.base.io
-
File Visitors Utility Class 文件访问器工具类
- OpenFileVisitors.CountingVisitor - Class in cloud.opencode.base.io
-
Counting Visitor 计数访问器
- OpenFileVisitors.SizeVisitor - Class in cloud.opencode.base.io
-
Size Visitor 大小访问器
- OpenIO - Class in cloud.opencode.base.io
-
File and Directory Operations Utility Class 文件和目录操作工具类
- OpenIOOperationException - Exception Class in cloud.opencode.base.io.exception
-
IO Operation Exception (Unchecked) IO操作异常(非受检)
- OpenIOOperationException(String) - Constructor for exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates an exception with message 创建带消息的异常
- OpenIOOperationException(String, String, String) - Constructor for exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates an exception with operation, path and message 创建带操作、路径和消息的异常
- OpenIOOperationException(String, String, String, Throwable) - Constructor for exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates an exception with operation, path, message and cause 创建带操作、路径、消息和原因的异常
- OpenIOOperationException(String, Throwable) - Constructor for exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates an exception with message and cause 创建带消息和原因的异常
- OpenMimeType - Class in cloud.opencode.base.io
-
MIME Type Detection Utility Class MIME 类型检测工具类
- OpenPath - Class in cloud.opencode.base.io
-
Path Utility Class 路径工具类
- OpenResource - Class in cloud.opencode.base.io
-
Resource Loading Utility Class 资源加载工具类
- openStream() - Method in class cloud.opencode.base.io.source.ByteSink
-
Opens a new OutputStream for writing.
- openStream() - Method in class cloud.opencode.base.io.source.ByteSource
-
Opens a new InputStream for reading.
- openStream() - Method in class cloud.opencode.base.io.source.CharSink
-
Opens a new Writer for writing.
- openStream() - Method in class cloud.opencode.base.io.source.CharSource
-
Opens a new Reader for reading.
- OpenStream - Class in cloud.opencode.base.io
-
Stream Processing Utility Class 流处理工具类
- OpenTempFile - Class in cloud.opencode.base.io.temp
-
Temp File Utility Class 临时文件工具类
- operation() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
operationrecord component. - operation() - Method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Gets the operation type 获取操作类型
P
- parallel() - Static method in class cloud.opencode.base.io.batch.OpenBatch
-
Create a parallel batch operation builder 创建并行批量操作构建器
- parallel(boolean) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Enables parallel processing with virtual threads.
- ParallelBuilder() - Constructor for class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
- parallelism(int) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Set parallelism level 设置并行度
- parallelism(int) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the parallelism level for parallel processing.
- path() - Method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Gets the path involved 获取涉及的路径
- path() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Returns the value of the
pathrecord component. - path(Path) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the file path.
- percentage() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the upload percentage as a double (0.0 to 100.0).
- preVisitDirectory(Path, BasicFileAttributes) - Method in class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
- process(Path, int, Consumer) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Processes a file in chunks.
- process(Path, Consumer) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Processes a file in chunks with the default chunk size.
- process(Consumer) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Processes the file with the given processor.
- processAndCollect(Function) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Processes the file and collects results.
- progressInterval(long) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the progress reporting interval.
R
- read() - Method in class cloud.opencode.base.io.source.ByteSource
-
Reads the entire contents as a byte array.
- read() - Method in class cloud.opencode.base.io.source.CharSource
-
Reads the entire contents as a string.
- read() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
- read() - Method in class cloud.opencode.base.io.stream.CountingInputStream
- read() - Method in class cloud.opencode.base.io.stream.ReaderInputStream
-
Reads a single byte from the stream 从流中读取单个字节
- read() - Method in class cloud.opencode.base.io.stream.TeeInputStream
- read() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Reads file content as bytes 读取文件内容为字节
- read(byte[], int, int) - Method in class cloud.opencode.base.io.stream.BoundedInputStream
- read(byte[], int, int) - Method in class cloud.opencode.base.io.stream.CountingInputStream
- read(byte[], int, int) - Method in class cloud.opencode.base.io.stream.ReaderInputStream
-
Reads bytes into the specified buffer 将字节读入指定的缓冲区
- read(byte[], int, int) - Method in class cloud.opencode.base.io.stream.TeeInputStream
- readBytes() - Method in interface cloud.opencode.base.io.resource.Resource
-
Reads the resource as byte array 读取资源为字节数组
- readBytes(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as byte array 读取资源为字节数组
- readBytes(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads file as byte array 读取文件为字节数组
- readEntry(Path, String) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Reads a single entry from a zip archive 从zip归档中读取单个条目
- readEntry(Path, String, long) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Reads a single entry from a zip archive with a size limit 从zip归档中读取单个条目(带大小限制)
- ReaderInputStream - Class in cloud.opencode.base.io.stream
-
Reader to InputStream Adapter Reader到InputStream的适配器
- ReaderInputStream(Reader) - Constructor for class cloud.opencode.base.io.stream.ReaderInputStream
-
Creates a ReaderInputStream with UTF-8 encoding 使用UTF-8编码创建ReaderInputStream
- ReaderInputStream(Reader, Charset) - Constructor for class cloud.opencode.base.io.stream.ReaderInputStream
-
Creates a ReaderInputStream with the specified charset 使用指定的字符集创建ReaderInputStream
- ReaderInputStream(Reader, CharsetEncoder) - Constructor for class cloud.opencode.base.io.stream.ReaderInputStream
-
Creates a ReaderInputStream with the specified charset encoder 使用指定的字符集编码器创建ReaderInputStream
- readFailed(Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a read failed exception for stream 创建流读取失败异常
- readFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a read failed exception 创建读取失败异常
- readFirstLine() - Method in class cloud.opencode.base.io.source.CharSource
-
Reads the first line.
- readFirstLine(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads the first line of file 读取文件首行
- readLines() - Method in class cloud.opencode.base.io.source.CharSource
-
Reads all lines as a list.
- readLines(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as lines with UTF-8 使用UTF-8读取资源为行列表
- readLines(String, Charset) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as lines 读取资源为行列表
- readLines(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads file as list of lines (UTF-8) 读取文件为行列表(UTF-8)
- readLines(Path, Charset) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads file as list of lines 读取文件为行列表
- readProperties(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as Properties 读取资源为Properties
- readString() - Method in interface cloud.opencode.base.io.resource.Resource
-
Reads the resource as string with UTF-8 使用UTF-8读取资源为字符串
- readString() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Reads file content as string (UTF-8) 读取文件内容为字符串(UTF-8)
- readString(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as UTF-8 string 读取资源为UTF-8字符串
- readString(String, Charset) - Static method in class cloud.opencode.base.io.OpenResource
-
Reads resource as string 读取资源为字符串
- readString(Charset) - Method in interface cloud.opencode.base.io.resource.Resource
-
Reads the resource as string with specified charset 使用指定字符集读取资源为字符串
- readString(Charset) - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Reads file content as string with charset 使用指定字符集读取文件内容为字符串
- readString(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads file as UTF-8 string 读取文件为UTF-8字符串
- readString(Path, Charset) - Static method in class cloud.opencode.base.io.OpenIO
-
Reads file as string 读取文件为字符串
- recordFailure(Path, Throwable) - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Record failure atomically 原子记录失败
- recursive() - Method in class cloud.opencode.base.io.file.FileCopier
-
Enables recursive copy for directories 启用目录递归复制
- reduce(String, BinaryOperator) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Reduces the processed lines using the given identity and accumulator 使用给定的初始值和累加器归约处理后的行
- relativize(Path, Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets relative path 获取相对路径
- removed() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns the value of the
removedrecord component. - replaceExisting() - Method in class cloud.opencode.base.io.file.FileCopier
-
Enables replace existing 启用替换现有文件
- reset() - Method in class cloud.opencode.base.io.stream.BoundedInputStream
- reset() - Method in class cloud.opencode.base.io.stream.CountingInputStream
- reset() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Resets the stream 重置流
- reset() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Resets the stream, clearing all data and deleting temp file if exists 重置流,清除所有数据并删除临时文件(如果存在)
- resetCount() - Method in class cloud.opencode.base.io.stream.CountingInputStream
-
Resets the counter and returns the previous count 重置计数器并返回之前的计数
- resolve(Path, String) - Static method in class cloud.opencode.base.io.OpenPath
-
Resolves path 解析路径
- Resource - Interface in cloud.opencode.base.io.resource
-
Resource Abstraction Interface 资源抽象接口
- ResourceLoader - Interface in cloud.opencode.base.io.resource
-
Resource Loader Interface 资源加载器接口
- resourceNotFound(String) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a resource not found exception 创建资源未找到异常
S
- setLastModifiedTime(Path, Instant) - Static method in class cloud.opencode.base.io.OpenIO
-
Sets last modified time 设置最后修改时间
- sha1(byte[]) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-1 hash for byte array 计算字节数组的SHA-1哈希
- sha1(InputStream) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-1 hash for an input stream 计算输入流的SHA-1哈希
- sha1(Path) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-1 hash for a file 计算文件的SHA-1哈希
- sha256(byte[]) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-256 hash for byte array 计算字节数组的SHA-256哈希
- sha256(InputStream) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-256 hash for an input stream 计算输入流的SHA-256哈希
- sha256(Path) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-256 hash for a file 计算文件的SHA-256哈希
- sha512(byte[]) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-512 hash for byte array 计算字节数组的SHA-512哈希
- sha512(InputStream) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-512 hash for an input stream 计算输入流的SHA-512哈希
- sha512(Path) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Calculates SHA-512 hash for a file 计算文件的SHA-512哈希
- size() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns the value of the
sizerecord component. - size() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns the value of the
sizerecord component. - size() - Method in class cloud.opencode.base.io.file.FileReader
-
Gets file size 获取文件大小
- size() - Method in class cloud.opencode.base.io.source.ByteSource
-
Returns the size of this source in bytes.
- size() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Gets the current size 获取当前大小
- size() - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
-
Returns the total number of bytes written 返回已写入的总字节数
- size() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Gets file size 获取文件大小
- size(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Gets file size 获取文件大小
- sizeIfKnown() - Method in class cloud.opencode.base.io.source.ByteSource
-
Returns the size of this source in bytes, if known.
- sizeLimitExceeded(long, long) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a size limit exceeded exception 创建大小超限异常
- sizeVisitor() - Static method in class cloud.opencode.base.io.OpenFileVisitors
-
Creates a size calculating visitor 创建计算大小的访问器
- SizeVisitor() - Constructor for class cloud.opencode.base.io.OpenFileVisitors.SizeVisitor
- skip(long) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Skips the first N lines 跳过前N行
- skip(long) - Method in class cloud.opencode.base.io.stream.BoundedInputStream
- skip(long) - Method in class cloud.opencode.base.io.stream.CountingInputStream
- skip(InputStream, long) - Static method in class cloud.opencode.base.io.OpenStream
-
Skips bytes from input stream 从输入流跳过字节
- skipped() - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Record a skip 记录跳过
- skippedCount() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
skippedCountrecord component. - slice(long, long) - Method in class cloud.opencode.base.io.source.ByteSource
-
Returns a ByteSource that returns a slice of this source.
- start() - Method in class cloud.opencode.base.io.file.FileWatcher
-
Starts watching 开始监听
- startOffset(long) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Sets the starting offset for reading.
- startTime() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
startTimerecord component. - stop() - Method in class cloud.opencode.base.io.file.FileWatcher
-
Stops watching and releases OS file watch handles (inotify/kqueue).
- stopOnError(boolean) - Method in class cloud.opencode.base.io.batch.OpenBatch.ParallelBuilder
-
Stop on first error 遇到第一个错误时停止
- stream() - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Creates a stream of chunks.
- stream() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Returns stream of matching paths.
- streamChunks(Path, int) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Creates a stream of chunks from a file.
- streamOperationFailed(String, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a stream operation failed exception 创建流操作失败异常
- success() - Method in class cloud.opencode.base.io.batch.BatchResult.Builder
-
Record a success 记录成功
- successCount() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
successCountrecord component. - successRate() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Get success rate 获取成功率
- summary() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Get summary string 获取摘要字符串
T
- TailReader - Class in cloud.opencode.base.io.file
-
Tail Reader Utility 尾部读取器工具
- TeeInputStream - Class in cloud.opencode.base.io.stream
-
Tee Input Stream 分流输入流
- TeeInputStream(InputStream, OutputStream) - Constructor for class cloud.opencode.base.io.stream.TeeInputStream
-
Creates a tee input stream 创建分流输入流
- TeeInputStream(InputStream, OutputStream, boolean) - Constructor for class cloud.opencode.base.io.stream.TeeInputStream
-
Creates a tee input stream with close option 创建带关闭选项的分流输入流
- TEXT_HTML - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Common HTML MIME type 常见 HTML MIME 类型
- TEXT_PLAIN - Static variable in class cloud.opencode.base.io.OpenMimeType
-
Common text MIME type 常见文本 MIME 类型
- throughputBytesPerSec() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the current upload throughput in bytes per second.
- to(String) - Method in class cloud.opencode.base.io.file.FileCopier
-
Sets the target path string 设置目标路径字符串
- to(Path) - Method in class cloud.opencode.base.io.file.FileCopier
-
Sets the target path 设置目标路径
- toAbsolute(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Converts to absolute path 转换为绝对路径
- toByteArray() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Gets the byte array (may share internal buffer) 获取字节数组(可能共享内部缓冲区)
- toByteArray(InputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Reads input stream as byte array 读取输入流为字节数组
- toByteArray(InputStream, int) - Static method in class cloud.opencode.base.io.OpenStream
-
Reads input stream as byte array with size limit 读取输入流为字节数组(带大小限制)
- toByteArrayCopy() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Gets a copy of the byte array 获取字节数组副本
- toByteBuffer() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Gets a read-only ByteBuffer view of the data.
- toFile() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Gets the file as File object 获取File对象
- toFile(Path) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Writes the processed lines to an output file using UTF-8 使用UTF-8将处理后的行写入输出文件
- toFile(Path, Charset) - Method in class cloud.opencode.base.io.file.LineProcessor
-
Writes the processed lines to an output file with specified charset 使用指定字符集将处理后的行写入输出文件
- toHex(byte[]) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Converts a byte array to a lowercase hex string (no formatting) 将字节数组转换为小写十六进制字符串(无格式化)
- toHex(byte[], int, int) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Converts a range of a byte array to a lowercase hex string 将字节数组的指定范围转换为小写十六进制字符串
- toHexUpper(byte[]) - Static method in class cloud.opencode.base.io.hex.HexDump
-
Converts a byte array to an uppercase hex string (no formatting) 将字节数组转换为大写十六进制字符串(无格式化)
- toInputStream() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Converts to input stream 转换为输入流
- toInputStream(byte[]) - Static method in class cloud.opencode.base.io.OpenStream
-
Converts byte array to input stream 将字节数组转换为输入流
- toInputStream(String, Charset) - Static method in class cloud.opencode.base.io.OpenStream
-
Converts string to input stream 将字符串转换为输入流
- toList() - Method in class cloud.opencode.base.io.file.MoreFiles.FileTreeTraversal
-
Collects all matching paths to a list.
- toPath(Path) - Static method in class cloud.opencode.base.io.source.ByteSink
-
Creates a ByteSink for writing to a file path.
- toPath(Path) - Static method in class cloud.opencode.base.io.source.CharSink
-
Creates a CharSink for writing to a file path with UTF-8 encoding.
- toPath(Path, Charset) - Static method in class cloud.opencode.base.io.source.CharSink
-
Creates a CharSink for writing to a file path.
- toPathAppend(Path) - Static method in class cloud.opencode.base.io.source.ByteSink
-
Creates a ByteSink for appending to a file path.
- toPathAppend(Path) - Static method in class cloud.opencode.base.io.source.CharSink
-
Creates a CharSink for appending to a file path with UTF-8 encoding.
- toPathAppend(Path, Charset) - Static method in class cloud.opencode.base.io.source.CharSink
-
Creates a CharSink for appending to a file path.
- toReader(InputStream, Charset) - Static method in class cloud.opencode.base.io.OpenStream
-
Converts input stream to reader 将输入流转换为Reader
- toRealPath(Path) - Static method in class cloud.opencode.base.io.OpenPath
-
Gets real path (resolves symbolic links) 获取真实路径(解析符号链接)
- toString() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.checksum.Checksum
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.ChunkedFileProcessor.Chunk
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.FileComparator.DirectoryDiff
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.FileComparator.LineChange
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.FileComparator.LineEntry
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.io.file.FileWatcher.FileEvent
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.io.lock.OpenFileLock.FileLockHandle
- toString() - Method in class cloud.opencode.base.io.progress.DownloadProgress
- toString() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.io.resource.ClassPathResource
- toString() - Method in class cloud.opencode.base.io.resource.DefaultResourceLoader
- toString() - Method in class cloud.opencode.base.io.resource.FileSystemResource
- toString() - Method in class cloud.opencode.base.io.resource.UrlResource
- toString() - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
- toString() - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
- toString(InputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Reads input stream as UTF-8 string 读取输入流为UTF-8字符串
- toString(InputStream, Charset) - Static method in class cloud.opencode.base.io.OpenStream
-
Reads input stream as string 读取输入流为字符串
- toString(Reader) - Static method in class cloud.opencode.base.io.OpenStream
-
Reads reader as string 读取Reader为字符串
- toString(String) - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Converts to string with charset 使用字符集转换为字符串
- totalBytes() - Method in record class cloud.opencode.base.io.progress.UploadProgress
-
Returns the value of the
totalBytesrecord component. - totalCount() - Method in record class cloud.opencode.base.io.batch.BatchResult
-
Returns the value of the
totalCountrecord component. - touch(Path) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Creates an empty file or updates its last modified time.
- toUnifiedDiff() - Method in record class cloud.opencode.base.io.file.FileComparator.LineDiff
-
Returns a unified diff format string.
- toWriter(OutputStream, Charset) - Static method in class cloud.opencode.base.io.OpenStream
-
Converts output stream to writer 将输出流转换为Writer
- trim() - Method in class cloud.opencode.base.io.file.LineProcessor
-
Trims whitespace from each line (shortcut for
map(String::trim)) 去除每行的空白字符(map(String::trim)的快捷方式) - tryLock(Path) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to acquire exclusive lock without blocking 尝试获取独占锁(不阻塞)
- tryLock(Path, boolean) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to acquire lock without blocking 尝试获取锁(不阻塞)
- tryLock(Path, Duration) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to acquire lock with timeout 尝试在超时时间内获取锁
- tryLock(Path, Duration, boolean) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to acquire lock with timeout 尝试在超时时间内获取锁
- tryLockFile(Path, Duration) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to create a lock file with timeout 尝试在超时时间内创建锁文件
- tryWithLock(Path, Duration, Supplier) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Try to execute action with lock, with timeout 尝试在超时时间内持有锁执行操作
U
- uniqueFile(Path, String, String) - Static method in class cloud.opencode.base.io.OpenPath
-
Generates a unique filename in directory 在目录中生成唯一文件名
- unknown(long, long) - Static method in class cloud.opencode.base.io.progress.DownloadProgress
-
Creates an unknown progress.
- unmarshal(byte[]) - Method in interface cloud.opencode.base.io.serialization.Marshaller
-
Deserializes a message from bytes.
- unzip(Path, Path) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Extracts a zip archive to the target directory with security checks 使用安全检查将zip归档提取到目标目录
- UploadProgress - Record Class in cloud.opencode.base.io.progress
-
Upload Progress - Snapshot of an upload operation's current progress 上传进度 - 上传操作当前进度的快照
- UploadProgress(String, long, long, long) - Constructor for record class cloud.opencode.base.io.progress.UploadProgress
-
Creates an instance of a
UploadProgressrecord class. - urlResource(String) - Static method in class cloud.opencode.base.io.OpenResource
-
Creates a URL resource from string 从字符串创建URL资源
- urlResource(URL) - Static method in class cloud.opencode.base.io.OpenResource
-
Creates a URL resource 创建URL资源
- UrlResource - Class in cloud.opencode.base.io.resource
-
URL Resource Implementation URL资源实现
- UrlResource(String) - Constructor for class cloud.opencode.base.io.resource.UrlResource
-
Creates a URL resource from string 从字符串创建URL资源
- UrlResource(URI) - Constructor for class cloud.opencode.base.io.resource.UrlResource
-
Creates a URL resource from URI 从URI创建URL资源
- UrlResource(URL) - Constructor for class cloud.opencode.base.io.resource.UrlResource
-
Creates a URL resource from URL 从URL创建URL资源
- useMemoryMapping(boolean) - Method in class cloud.opencode.base.io.file.ChunkedFileProcessor.Builder
-
Enables memory-mapped file processing.
V
- verify(byte[], String, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Verifies byte array checksum 验证字节数组校验和
- verify(InputStream, String, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Verifies input stream checksum 验证输入流校验和
- verify(Path, String, String) - Static method in class cloud.opencode.base.io.checksum.OpenChecksum
-
Verifies file checksum 验证文件校验和
- visitFile(Path, BasicFileAttributes) - Method in class cloud.opencode.base.io.OpenFileVisitors.CountingVisitor
- visitFile(Path, BasicFileAttributes) - Method in class cloud.opencode.base.io.OpenFileVisitors.SizeVisitor
W
- walk(Path) - Static method in class cloud.opencode.base.io.OpenIO
-
Walks directory tree with unlimited depth 遍历目录树(无深度限制)
- walk(Path, int) - Static method in class cloud.opencode.base.io.OpenIO
-
Walks directory tree 遍历目录树
- walkFileTree(Path, Consumer) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Walks the file tree and applies the action to each file.
- watch(String) - Static method in class cloud.opencode.base.io.file.FileWatcher
-
Creates a file watcher for the given path string 为给定路径字符串创建文件监听器
- watch(Path) - Static method in class cloud.opencode.base.io.file.FileWatcher
-
Creates a file watcher for the given path 为给定路径创建文件监听器
- watchFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a watch failed exception 创建监听失败异常
- withLock(Path, Runnable) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Execute action with exclusive lock (no return value) 持有独占锁执行操作(无返回值)
- withLock(Path, Supplier) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Execute action with exclusive lock 持有独占锁执行操作
- withSharedLock(Path, Supplier) - Static method in class cloud.opencode.base.io.lock.OpenFileLock
-
Execute action with shared lock 持有共享锁执行操作
- wrap(byte[]) - Static method in class cloud.opencode.base.io.source.ByteSource
-
Creates a ByteSource from a byte array.
- wrap(CharSequence) - Static method in class cloud.opencode.base.io.source.CharSource
-
Creates a CharSource from a string.
- write(byte[]) - Method in class cloud.opencode.base.io.file.FileWriter
-
Writes byte array to file 写入字节数组到文件
- write(byte[]) - Method in class cloud.opencode.base.io.source.ByteSink
-
Writes all bytes from a byte array.
- write(byte[]) - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Writes byte content to the file 写入字节内容到文件
- write(byte[], int, int) - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
- write(byte[], int, int) - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
- write(byte[], int, int) - Method in class cloud.opencode.base.io.stream.WriterOutputStream
-
Writes bytes from the specified buffer 从指定的缓冲区写入字节
- write(byte[], OutputStream) - Static method in class cloud.opencode.base.io.OpenStream
-
Writes byte array to output stream 写入字节数组到输出流
- write(int) - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
- write(int) - Method in class cloud.opencode.base.io.stream.FileBackedOutputStream
- write(int) - Method in class cloud.opencode.base.io.stream.WriterOutputStream
-
Writes a single byte to the stream 向流中写入单个字节
- write(CharSequence) - Method in class cloud.opencode.base.io.file.FileWriter
-
Writes string to file 写入字符串到文件
- write(CharSequence) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes a character sequence.
- write(String) - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Writes string content to the file (UTF-8) 写入字符串内容到文件(UTF-8)
- write(String, OutputStream, Charset) - Static method in class cloud.opencode.base.io.OpenStream
-
Writes string to output stream 写入字符串到输出流
- write(String, Writer) - Static method in class cloud.opencode.base.io.OpenStream
-
Writes string to writer 写入字符串到Writer
- write(String, Charset) - Method in class cloud.opencode.base.io.temp.AutoDeleteTempFile
-
Writes string content to the file with charset 使用指定字符集写入字符串内容到文件
- writeAtomically(Path, byte[]) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes bytes atomically to a file.
- writeAtomically(Path, InputStream) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes from an InputStream atomically to a file.
- writeAtomically(Path, Iterable) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes lines atomically to a file (UTF-8).
- writeAtomically(Path, Iterable, Charset) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes lines atomically to a file.
- writeAtomically(Path, String) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes content atomically to a file (UTF-8).
- writeAtomically(Path, String, Charset) - Static method in class cloud.opencode.base.io.file.MoreFiles
-
Writes content atomically to a file.
- writeBytes(Path, byte[], OpenOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Writes byte array to file 写入字节数组到文件
- writeFailed(Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a write failed exception for stream 创建流写入失败异常
- writeFailed(Path, Throwable) - Static method in exception class cloud.opencode.base.io.exception.OpenIOOperationException
-
Creates a write failed exception 创建写入失败异常
- writeFrom(InputStream) - Method in class cloud.opencode.base.io.source.ByteSink
-
Writes all bytes from an InputStream.
- writeFrom(Reader) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes all characters from a Reader.
- writeInChunks(Path, byte[], int, BiConsumer) - Static method in class cloud.opencode.base.io.file.ChunkedFileProcessor
-
Writes data to a file in chunks.
- writeLines(Iterable) - Method in class cloud.opencode.base.io.file.FileWriter
-
Writes lines to file 写入行到文件
- writeLines(Iterable) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes lines with the system line separator.
- writeLines(Iterable, String) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes lines with a custom line separator.
- writeLines(Path, Iterable, Charset, OpenOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Writes lines to file 写入行到文件
- writeLines(Path, Iterable, OpenOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Writes lines to file (UTF-8) 写入行到文件(UTF-8)
- writeLines(Stream) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes lines from a stream with the system line separator.
- writeLines(Stream, String) - Method in class cloud.opencode.base.io.source.CharSink
-
Writes lines from a stream with a custom line separator.
- WriterOutputStream - Class in cloud.opencode.base.io.stream
-
Writer to OutputStream Adapter Writer到OutputStream的适配器
- WriterOutputStream(Writer) - Constructor for class cloud.opencode.base.io.stream.WriterOutputStream
-
Creates a WriterOutputStream with UTF-8 decoding 使用UTF-8解码创建WriterOutputStream
- WriterOutputStream(Writer, Charset) - Constructor for class cloud.opencode.base.io.stream.WriterOutputStream
-
Creates a WriterOutputStream with the specified charset 使用指定的字符集创建WriterOutputStream
- WriterOutputStream(Writer, CharsetDecoder) - Constructor for class cloud.opencode.base.io.stream.WriterOutputStream
-
Creates a WriterOutputStream with the specified charset decoder 使用指定的字符集解码器创建WriterOutputStream
- writeString(Path, CharSequence, Charset, OpenOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Writes string to file 写入字符串到文件
- writeString(Path, CharSequence, OpenOption...) - Static method in class cloud.opencode.base.io.OpenIO
-
Writes string to file (UTF-8) 写入字符串到文件(UTF-8)
- writeTo(OutputStream) - Method in class cloud.opencode.base.io.stream.FastByteArrayOutputStream
-
Writes content to another output stream 将内容写入另一个输出流
- writeTo(Path) - Method in class cloud.opencode.base.io.compress.ZipBuilder
-
Writes the assembled archive to the target path 将组装好的归档写入目标路径
Z
- zip(Path, Path) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Zips a single file or directory to the target zip file 将单个文件或目录压缩到目标zip文件
- zip(Collection, Path) - Static method in class cloud.opencode.base.io.compress.ZipUtil
-
Zips multiple files to the target zip file 将多个文件压缩到目标zip文件
- ZipBuilder - Class in cloud.opencode.base.io.compress
-
Fluent Builder for Creating Zip Archives 用于创建Zip归档的流式构建器
- ZipEntryInfo - Record Class in cloud.opencode.base.io.compress
-
Zip Entry Metadata Record Zip条目元数据记录
- ZipEntryInfo(String, long, long, boolean, long, Instant) - Constructor for record class cloud.opencode.base.io.compress.ZipEntryInfo
-
Creates an instance of a
ZipEntryInforecord class. - ZipUtil - Class in cloud.opencode.base.io.compress
-
Zip Archive Utility Zip归档工具类
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form