Index
All Classes and Interfaces|All Packages|Serialized Form
A
- accept(byte[], int, int) - Method in class cool.scx.io.BytesDataConsumer
- accept(byte[], int, int) - Method in interface cool.scx.io.DataConsumer
- available() - Method in class cool.scx.io.LazyInputStream
B
- ByteArrayDataReader - Class in cool.scx.io
-
ByteArrayDataReader
- ByteArrayDataReader(byte[]) - Constructor for class cool.scx.io.ByteArrayDataReader
- BytesDataConsumer - Class in cool.scx.io
-
BytesDataConsumer
- BytesDataConsumer() - Constructor for class cool.scx.io.BytesDataConsumer
C
- ChangeEvent(Path, FileWatcher.ChangeEventType) - Constructor for record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Creates an instance of a
ChangeEventrecord class. - charset() - Method in class cool.scx.io.zip.ZipOptions
- close() - Method in class cool.scx.io.LazyInputStream
- comment() - Method in class cool.scx.io.zip.ZipOptions
- compressBytes(byte[], int, int) - Static method in class cool.scx.io.IOHelper
- computeLPSArray(byte[]) - Static method in class cool.scx.io.KMPDataIndexer
- cool.scx.io - package cool.scx.io
- cool.scx.io.file - package cool.scx.io.file
- cool.scx.io.image - package cool.scx.io.image
- cool.scx.io.zip - package cool.scx.io.zip
- CREATED - Enum constant in enum class cool.scx.io.file.FileWatcher.ChangeEventType
- createGzipInputStream(InputStream) - Static method in class cool.scx.io.zip.GzipBuilder
D
- DataConsumer - Interface in cool.scx.io
-
DataConsumer
- DataIndexer - Interface in cool.scx.io
-
DataIndexer
- DataNode - Class in cool.scx.io
-
DataNode
- DataNode(byte[]) - Constructor for class cool.scx.io.DataNode
- DataNode(byte[], int, int) - Constructor for class cool.scx.io.DataNode
- DataReader - Interface in cool.scx.io
-
DataReader
- DELETED - Enum constant in enum class cool.scx.io.file.FileWatcher.ChangeEventType
E
- EMPTY_BYTES - Static variable in interface cool.scx.io.DataReader
- equals(Object) - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Indicates whether some other object is "equal to" this one.
F
- FileAttributesReader - Class in cool.scx.io.file
-
通过 FileWatcher 主动更新 代替高频的 Files.readAttributes 查询
- FileAttributesReader(Path) - Constructor for class cool.scx.io.file.FileAttributesReader
- FileWatcher - Class in cool.scx.io.file
-
文件监听器
- FileWatcher(Path) - Constructor for class cool.scx.io.file.FileWatcher
- FileWatcher.ChangeEvent - Record Class in cool.scx.io.file
- FileWatcher.ChangeEventType - Enum Class in cool.scx.io.file
G
- get() - Method in class cool.scx.io.InputStreamDataSupplier
- get(String) - Method in class cool.scx.io.zip.ZipBuilder
- get(Path) - Method in class cool.scx.io.file.FileAttributesReader
-
这里为了性能考虑并没有在 方法内部判断 但是请保证 参数 path 一定是 target 的子目录或者子文件 否则将无法正确判断文件变化
- getBytes() - Method in class cool.scx.io.BytesDataConsumer
- getFileSize(Path) - Static method in class cool.scx.io.IOHelper
- getImageWriter(String) - Static method in class cool.scx.io.image.ProgressiveJPEGBuilder
- GunzipBuilder - Class in cool.scx.io.zip
-
用来解压缩 GZIP 这里直接使用 GZIPInputStream 来完成
- GunzipBuilder(InputStream) - Constructor for class cool.scx.io.zip.GunzipBuilder
- GunzipBuilder(InputStream, int) - Constructor for class cool.scx.io.zip.GunzipBuilder
- GzipBuilder - Class in cool.scx.io.zip
-
用来 压缩 GZIP
- GzipBuilder(InputStream) - Constructor for class cool.scx.io.zip.GzipBuilder
- GzipBuilder.GzipDataInputStream - Class in cool.scx.io.zip
- GzipBuilder.GzipHeaderInputStream - Class in cool.scx.io.zip
- GzipBuilder.GzipTrailerInputStream - Class in cool.scx.io.zip
- GzipDataInputStream(InputStream, CRC32, Deflater) - Constructor for class cool.scx.io.zip.GzipBuilder.GzipDataInputStream
- GzipHeaderInputStream() - Constructor for class cool.scx.io.zip.GzipBuilder.GzipHeaderInputStream
- GzipTrailerInputStream(CRC32, Deflater) - Constructor for class cool.scx.io.zip.GzipBuilder.GzipTrailerInputStream
H
- hashCode() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Returns a hash code value for this object.
I
- includeRoot() - Method in class cool.scx.io.zip.ZipOptions
- indexOf(byte) - Method in interface cool.scx.io.DataReader
-
查找 指定字节 第一次出现的 index (指针不会移动)
- indexOf(byte[]) - Method in interface cool.scx.io.DataReader
-
查找 指定字节数组 第一次出现的 index (指针不会移动)
- indexOf(byte[], int) - Method in class cool.scx.io.ByteArrayDataReader
- indexOf(byte[], int) - Method in interface cool.scx.io.DataReader
-
查找 指定字节数组 第一次出现的 index (指针不会移动)
- indexOf(byte[], int) - Method in class cool.scx.io.LinkedDataReader
- indexOf(byte[], int, int) - Method in interface cool.scx.io.DataIndexer
-
注意此方法支持回溯匹配 所以返回值可能出现负数 为了性能考虑 不使用异常来中断 当真正 未找到时 返回 Integer.MIN_VALUE 此方法会循环调用 所以注意内部处理 建议每次都重新创建
- indexOf(byte[], int, int) - Method in class cool.scx.io.KMPDataIndexer
- indexOf(byte, int) - Method in class cool.scx.io.ByteArrayDataReader
- indexOf(byte, int) - Method in interface cool.scx.io.DataReader
-
查找 指定字节 第一次出现的 index (指针不会移动)
- indexOf(byte, int) - Method in class cool.scx.io.LinkedDataReader
- InputStreamDataSupplier - Class in cool.scx.io
-
InputStreamDataSupplier
- InputStreamDataSupplier(InputStream) - Constructor for class cool.scx.io.InputStreamDataSupplier
- InputStreamDataSupplier(InputStream, boolean) - Constructor for class cool.scx.io.InputStreamDataSupplier
- InputStreamDataSupplier(InputStream, int) - Constructor for class cool.scx.io.InputStreamDataSupplier
- InputStreamDataSupplier(InputStream, int, boolean) - Constructor for class cool.scx.io.InputStreamDataSupplier
- IOHelper - Class in cool.scx.io
-
IOHelper
- IOHelper() - Constructor for class cool.scx.io.IOHelper
- items() - Method in class cool.scx.io.zip.ZipBuilder
K
- KMPDataIndexer - Class in cool.scx.io
-
KMPDataIndexer
- KMPDataIndexer(byte[]) - Constructor for class cool.scx.io.KMPDataIndexer
L
- LazyInputStream - Class in cool.scx.io
-
懒加载输入流
- LazyInputStream() - Constructor for class cool.scx.io.LazyInputStream
- level() - Method in class cool.scx.io.zip.ZipOptions
- LinkedDataReader - Class in cool.scx.io
-
LinkedDataReader
- LinkedDataReader(Supplier<DataNode>) - Constructor for class cool.scx.io.LinkedDataReader
- listener(Consumer<FileWatcher.ChangeEvent>) - Method in class cool.scx.io.file.FileWatcher
M
- mark(int) - Method in class cool.scx.io.LazyInputStream
- markSupported() - Method in class cool.scx.io.LazyInputStream
- MODIFY - Enum constant in enum class cool.scx.io.file.FileWatcher.ChangeEventType
N
- NoMatchFoundException - Exception Class in cool.scx.io
-
寻找匹配内容 查找失败的异常
- NoMatchFoundException() - Constructor for exception class cool.scx.io.NoMatchFoundException
- NoMoreDataException - Exception Class in cool.scx.io
-
读取数据时达到末尾的异常
- NoMoreDataException() - Constructor for exception class cool.scx.io.NoMoreDataException
O
- of(WatchEvent.Kind<?>) - Static method in enum class cool.scx.io.file.FileWatcher.ChangeEventType
P
- PathZipBuilderItem - Class in cool.scx.io.zip
-
PathZipBuilderItem
- PathZipBuilderItem(String, Path, ZipOptions) - Constructor for class cool.scx.io.zip.PathZipBuilderItem
- peek() - Method in class cool.scx.io.ByteArrayDataReader
- peek() - Method in interface cool.scx.io.DataReader
-
向 dataConsumer 写入指定长度字节 (指针不会移动) 当没有更多的数据时会抛出异常
- peek() - Method in class cool.scx.io.LinkedDataReader
- peek(int) - Method in class cool.scx.io.ByteArrayDataReader
- peek(int) - Method in interface cool.scx.io.DataReader
-
读取指定长度字节 (指针不会移动) 当没有更多的数据时会抛出异常
- peek(int) - Method in class cool.scx.io.LinkedDataReader
- peek(DataConsumer, int) - Method in class cool.scx.io.ByteArrayDataReader
- peek(DataConsumer, int) - Method in interface cool.scx.io.DataReader
-
向 outputStream 写入指定长度字节 (指针不会移动) 当没有更多的数据时会抛出异常
- peek(DataConsumer, int) - Method in class cool.scx.io.LinkedDataReader
- peekUntil(byte) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针不会移动)
- peekUntil(byte[]) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针不会移动)
- peekUntil(byte[], int) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针不会移动)
- peekUntil(byte, int) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针不会移动)
- ProgressiveJPEGBuilder - Class in cool.scx.io.image
-
将图片转换为 渐进式 JPEG
- ProgressiveJPEGBuilder() - Constructor for class cool.scx.io.image.ProgressiveJPEGBuilder
- put(String) - Method in class cool.scx.io.zip.ZipBuilder
- put(String, byte[]) - Method in class cool.scx.io.zip.ZipBuilder
- put(String, InputStream) - Method in class cool.scx.io.zip.ZipBuilder
- put(String, Path, ZipOptions) - Method in class cool.scx.io.zip.ZipBuilder
- put(Path) - Method in class cool.scx.io.zip.ZipBuilder
- put(Path, ZipOptions) - Method in class cool.scx.io.zip.ZipBuilder
R
- read() - Method in class cool.scx.io.ByteArrayDataReader
- read() - Method in interface cool.scx.io.DataReader
-
读取单个字节 (指针会移动) 当没有更多的数据时会抛出异常
- read() - Method in class cool.scx.io.LazyInputStream
- read() - Method in class cool.scx.io.LinkedDataReader
- read(byte[]) - Method in class cool.scx.io.LazyInputStream
- read(byte[], int, int) - Method in class cool.scx.io.LazyInputStream
- read(int) - Method in class cool.scx.io.ByteArrayDataReader
- read(int) - Method in interface cool.scx.io.DataReader
-
读取字节 (指针会移动) 当没有更多的数据时会抛出异常
- read(int) - Method in class cool.scx.io.LinkedDataReader
- read(DataConsumer, int) - Method in class cool.scx.io.ByteArrayDataReader
- read(DataConsumer, int) - Method in interface cool.scx.io.DataReader
-
向 dataConsumer 写入指定长度字节 (指针会移动) 当没有更多的数据时会抛出异常
- read(DataConsumer, int) - Method in class cool.scx.io.LinkedDataReader
- readAllBytes() - Method in class cool.scx.io.LazyInputStream
- readInToFile(InputStream, Path, long, long) - Static method in class cool.scx.io.IOHelper
- readInToFile(InputStream, Path, OpenOption...) - Static method in class cool.scx.io.IOHelper
- readNBytes(byte[], int, int) - Method in class cool.scx.io.LazyInputStream
- readNBytes(int) - Method in class cool.scx.io.LazyInputStream
- readUntil(byte) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针会移动)
- readUntil(byte[]) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针会移动)
- readUntil(byte[], int) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针会移动)
- readUntil(byte, int) - Method in interface cool.scx.io.DataReader
-
读取 直到 找到匹配的字节 (指针会移动)
- remove(String) - Method in class cool.scx.io.zip.ZipBuilder
- reset() - Method in class cool.scx.io.LazyInputStream
S
- setCharset(Charset) - Method in class cool.scx.io.zip.ZipOptions
- setComment(String) - Method in class cool.scx.io.zip.ZipOptions
- setIncludeRoot(boolean) - Method in class cool.scx.io.zip.ZipOptions
- setLevel(int) - Method in class cool.scx.io.zip.ZipOptions
- setUseOriginalFileName(boolean) - Method in class cool.scx.io.zip.ZipOptions
- skip(int) - Method in class cool.scx.io.ByteArrayDataReader
- skip(int) - Method in interface cool.scx.io.DataReader
-
向后移动指定字节
- skip(int) - Method in class cool.scx.io.LinkedDataReader
- skip(long) - Method in class cool.scx.io.LazyInputStream
- skipNBytes(long) - Method in class cool.scx.io.LazyInputStream
- source - Variable in class cool.scx.io.zip.ZipBuilderItem
- start() - Method in class cool.scx.io.file.FileWatcher
- stop() - Method in class cool.scx.io.file.FileWatcher
T
- target() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Returns the value of the
targetrecord component. - toBytes() - Method in class cool.scx.io.zip.ZipBuilder
-
将 virtualFile 转换为 byte 数组 方便前台用户下载使用
- toBytes(ZipOptions) - Method in class cool.scx.io.zip.ZipBuilder
- toFile(Path) - Method in class cool.scx.io.zip.UnZipBuilder
- toFile(Path) - Method in class cool.scx.io.zip.ZipBuilder
- toFile(Path, ZipOptions) - Method in class cool.scx.io.zip.UnZipBuilder
-
解压
- toFile(Path, ZipOptions) - Method in class cool.scx.io.zip.ZipBuilder
-
将一个虚拟文件压缩
- toInputStream() - Method in class cool.scx.io.LazyInputStream
- toInputStream0() - Method in class cool.scx.io.LazyInputStream
- toInputStream0() - Method in class cool.scx.io.zip.GzipBuilder.GzipTrailerInputStream
- toProgressiveJPEG(InputStream) - Static method in class cool.scx.io.image.ProgressiveJPEGBuilder
- toProgressiveJPEG(InputStream, OutputStream) - Static method in class cool.scx.io.image.ProgressiveJPEGBuilder
- toString() - Method in class cool.scx.io.DataNode
- toString() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Returns a string representation of this record class.
- transferTo(OutputStream) - Method in class cool.scx.io.LazyInputStream
- type() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
-
Returns the value of the
typerecord component.
U
- UnZipBuilder - Class in cool.scx.io.zip
-
UnZipBuilder
- UnZipBuilder(byte[]) - Constructor for class cool.scx.io.zip.UnZipBuilder
- UnZipBuilder(InputStream) - Constructor for class cool.scx.io.zip.UnZipBuilder
- UnZipBuilder(Path) - Constructor for class cool.scx.io.zip.UnZipBuilder
- useOriginalFileName() - Method in class cool.scx.io.zip.ZipOptions
V
- valueOf(String) - Static method in enum class cool.scx.io.file.FileWatcher.ChangeEventType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cool.scx.io.file.FileWatcher.ChangeEventType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- writeFileToOut(Path, OutputStream) - Static method in class cool.scx.io.IOHelper
- writeFileToOut(Path, OutputStream, long, long) - Static method in class cool.scx.io.IOHelper
- writeToZipOutputStream(ZipOutputStream) - Method in class cool.scx.io.zip.PathZipBuilderItem
- writeToZipOutputStream(ZipOutputStream) - Method in class cool.scx.io.zip.ZipBuilder
- writeToZipOutputStream(ZipOutputStream) - Method in class cool.scx.io.zip.ZipBuilderItem
Z
- ZipBuilder - Class in cool.scx.io.zip
-
简化 zip 的创建
- ZipBuilder() - Constructor for class cool.scx.io.zip.ZipBuilder
- ZipBuilder(Path) - Constructor for class cool.scx.io.zip.ZipBuilder
- ZipBuilder(Path, ZipOptions) - Constructor for class cool.scx.io.zip.ZipBuilder
- ZipBuilder(ZipFile) - Constructor for class cool.scx.io.zip.ZipBuilder
- ZipBuilderItem - Class in cool.scx.io.zip
-
ZipBuilderItem
- zipDataSource() - Method in class cool.scx.io.zip.ZipBuilderItem
- ZipOptions - Class in cool.scx.io.zip
-
ZipOptions
- ZipOptions() - Constructor for class cool.scx.io.zip.ZipOptions
- zipPath - Variable in class cool.scx.io.zip.ZipBuilderItem
-
经过处理后必须为 "" 或者 结尾是 "/", 开头不允许有 "/"
_
- _do() - Method in class cool.scx.io.file.FileWatcher
All Classes and Interfaces|All Packages|Serialized Form