Index

A B C D E F G H I K L M N O P R S T U V W Z _ 
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
 

B

ByteArrayDataReader - Class in cool.scx.io
 
ByteArrayDataReader(byte[]) - Constructor for class cool.scx.io.ByteArrayDataReader
 
BytesDataConsumer - Class in cool.scx.io
 
BytesDataConsumer() - Constructor for class cool.scx.io.BytesDataConsumer
 
BytesSource - Class in cool.scx.io.io_stream_source
 
BytesSource(byte[]) - Constructor for class cool.scx.io.io_stream_source.BytesSource
 
BytesSupplierSource - Class in cool.scx.io.io_stream_source
 
BytesSupplierSource(Supplier<byte[]>) - Constructor for class cool.scx.io.io_stream_source.BytesSupplierSource
 

C

ChangeEvent(Path, FileWatcher.ChangeEventType) - Constructor for record class cool.scx.io.file.FileWatcher.ChangeEvent
Creates an instance of a ChangeEvent record class.
charset() - Method in class cool.scx.io.zip.ZipOptions
 
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.io_stream_source - package cool.scx.io.io_stream_source
 
cool.scx.io.zip - package cool.scx.io.zip
 
CREATED - Enum constant in enum class cool.scx.io.file.FileWatcher.ChangeEventType
 

D

DataConsumer - Interface in cool.scx.io
 
DataIndexer - Interface in cool.scx.io
 
DataReader - Interface in cool.scx.io
 
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
GunzipBuilder
GunzipBuilder(byte[]) - Constructor for class cool.scx.io.zip.GunzipBuilder
 
GunzipBuilder(InputStreamSource) - Constructor for class cool.scx.io.zip.GunzipBuilder
 
GunzipBuilder(InputStream) - Constructor for class cool.scx.io.zip.GunzipBuilder
 
GunzipBuilder(Path) - Constructor for class cool.scx.io.zip.GunzipBuilder
 
GunzipBuilder(Supplier<byte[]>) - Constructor for class cool.scx.io.zip.GunzipBuilder
 
GzipBuilder - Class in cool.scx.io.zip
GzipBuilder
GzipBuilder(byte[]) - Constructor for class cool.scx.io.zip.GzipBuilder
 
GzipBuilder(InputStreamSource) - Constructor for class cool.scx.io.zip.GzipBuilder
 
GzipBuilder(InputStream) - Constructor for class cool.scx.io.zip.GzipBuilder
 
GzipBuilder(Path) - Constructor for class cool.scx.io.zip.GzipBuilder
 
GzipBuilder(Supplier<byte[]>) - Constructor for class cool.scx.io.zip.GzipBuilder
 

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 class cool.scx.io.ByteArrayDataReader
 
indexOf(byte) - Method in interface cool.scx.io.DataReader
查找 指定字节 第一次出现的 index (指针不会移动)
indexOf(byte) - Method in class cool.scx.io.LinkedDataReader
 
indexOf(byte[]) - Method in class cool.scx.io.ByteArrayDataReader
 
indexOf(byte[]) - Method in interface cool.scx.io.DataReader
查找 指定字节数组 第一次出现的 index (指针不会移动)
indexOf(byte[]) - Method in class cool.scx.io.LinkedDataReader
 
indexOf(byte[], int, int) - Method in interface cool.scx.io.DataIndexer
如果 没找到返回 -1 否则返回索引位置 此方法会循环调用 所以注意内部处理 建议每次都重新创建
indexOf(byte[], int, int) - Method in class cool.scx.io.KMPDataIndexer
 
InputStreamDataSupplier - Class in cool.scx.io
 
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
 
InputStreamSource - Interface in cool.scx.io.io_stream_source
可以将其想象成一个 BytesSupplier ,主要用来规范多种类型的数据来源 如文件 字节数组等
IOHelper - Class in cool.scx.io
 
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(byte[]) - Constructor for class cool.scx.io.KMPDataIndexer
 

L

level() - Method in class cool.scx.io.zip.ZipOptions
 
LinkedDataReader - Class in cool.scx.io
 
LinkedDataReader(Supplier<LinkedDataReader.Node>) - Constructor for class cool.scx.io.LinkedDataReader
 
LinkedDataReader.Node - Class in cool.scx.io
 
listener(Consumer<FileWatcher.ChangeEvent>) - Method in class cool.scx.io.file.FileWatcher
 

M

MODIFY - Enum constant in enum class cool.scx.io.file.FileWatcher.ChangeEventType
 

N

Node(byte[]) - Constructor for class cool.scx.io.LinkedDataReader.Node
 
Node(byte[], int, int) - Constructor for class cool.scx.io.LinkedDataReader.Node
 
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
 
NullSource - Class in cool.scx.io.io_stream_source
 
NullSource() - Constructor for class cool.scx.io.io_stream_source.NullSource
 

O

of() - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
of(byte[]) - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
of(InputStream) - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
of(Path) - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
of(WatchEvent.Kind<?>) - Static method in enum class cool.scx.io.file.FileWatcher.ChangeEventType
 
of(Supplier<byte[]>) - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
of(ZipEntry, ZipFile) - Static method in interface cool.scx.io.io_stream_source.InputStreamSource
 
OutputStreamSource - Interface in cool.scx.io.io_stream_source
 

P

PathSource - Class in cool.scx.io.io_stream_source
 
PathSource(Path) - Constructor for class cool.scx.io.io_stream_source.PathSource
 
PathZipBuilderItem - Class in cool.scx.io.zip
 
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
读取 直到 找到匹配的字节 (指针不会移动)
ProgressiveJPEGBuilder - Class in cool.scx.io.image
将图片转换为 渐进式 JPEG
ProgressiveJPEGBuilder(byte[]) - Constructor for class cool.scx.io.image.ProgressiveJPEGBuilder
 
ProgressiveJPEGBuilder(InputStreamSource) - Constructor for class cool.scx.io.image.ProgressiveJPEGBuilder
 
ProgressiveJPEGBuilder(InputStream) - Constructor for class cool.scx.io.image.ProgressiveJPEGBuilder
 
ProgressiveJPEGBuilder(Path) - Constructor for class cool.scx.io.image.ProgressiveJPEGBuilder
 
ProgressiveJPEGBuilder(Supplier<byte[]>) - 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(String, Supplier<byte[]>) - 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

RawInputStreamSource - Class in cool.scx.io.io_stream_source
 
RawInputStreamSource(InputStream) - Constructor for class cool.scx.io.io_stream_source.RawInputStreamSource
 
read() - Method in class cool.scx.io.ByteArrayDataReader
 
read() - Method in interface cool.scx.io.DataReader
读取单个字节 (指针会移动) 当没有更多的数据时会抛出异常
read() - Method in class cool.scx.io.LinkedDataReader
 
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
 
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
 
readUntil(byte) - Method in interface cool.scx.io.DataReader
读取 直到 找到匹配的字节 (指针会移动)
readUntil(byte[]) - Method in interface cool.scx.io.DataReader
读取 直到 找到匹配的字节 (指针会移动)
remove(String) - Method in class cool.scx.io.zip.ZipBuilder
 

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
 
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 target record component.
toBytes() - Method in class cool.scx.io.io_stream_source.BytesSource
 
toBytes() - Method in class cool.scx.io.io_stream_source.BytesSupplierSource
 
toBytes() - Method in interface cool.scx.io.io_stream_source.InputStreamSource
这样默认会比 OutputStreamSource.toBytes() 性能更高一些
toBytes() - Method in class cool.scx.io.io_stream_source.NullSource
 
toBytes() - Method in interface cool.scx.io.io_stream_source.OutputStreamSource
 
toBytes() - Method in class cool.scx.io.io_stream_source.PathSource
 
toBytes() - Method in class cool.scx.io.io_stream_source.RawInputStreamSource
 
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
将一个虚拟文件压缩
toFile(Path, OpenOption...) - Method in class cool.scx.io.io_stream_source.BytesSource
 
toFile(Path, OpenOption...) - Method in class cool.scx.io.io_stream_source.BytesSupplierSource
 
toFile(Path, OpenOption...) - Method in class cool.scx.io.io_stream_source.NullSource
 
toFile(Path, OpenOption...) - Method in interface cool.scx.io.io_stream_source.OutputStreamSource
 
toFile(Path, OpenOption...) - Method in class cool.scx.io.io_stream_source.PathSource
 
toInputStream() - Method in class cool.scx.io.io_stream_source.BytesSource
 
toInputStream() - Method in class cool.scx.io.io_stream_source.BytesSupplierSource
 
toInputStream() - Method in interface cool.scx.io.io_stream_source.InputStreamSource
转换为 InputStream
toInputStream() - Method in class cool.scx.io.io_stream_source.NullSource
 
toInputStream() - Method in class cool.scx.io.io_stream_source.PathSource
 
toInputStream() - Method in class cool.scx.io.io_stream_source.RawInputStreamSource
 
toInputStream() - Method in class cool.scx.io.io_stream_source.ZipEntrySource
 
toInputStream() - Method in class cool.scx.io.zip.GunzipBuilder
 
toString() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
Returns a string representation of this record class.
toString() - Method in class cool.scx.io.LinkedDataReader.Node
 
toString(Charset) - Method in interface cool.scx.io.io_stream_source.InputStreamSource
 
type() - Method in record class cool.scx.io.file.FileWatcher.ChangeEvent
Returns the value of the type record component.

U

UnZipBuilder - Class in cool.scx.io.zip
UnZipBuilder class.
UnZipBuilder(byte[]) - Constructor for class cool.scx.io.zip.UnZipBuilder
 
UnZipBuilder(InputStreamSource) - 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
 
UnZipBuilder(Supplier<byte[]>) - 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
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.image.ProgressiveJPEGBuilder
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.io_stream_source.BytesSource
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.io_stream_source.BytesSupplierSource
 
writeToOutputStream(OutputStream) - Method in interface cool.scx.io.io_stream_source.InputStreamSource
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.io_stream_source.NullSource
 
writeToOutputStream(OutputStream) - Method in interface cool.scx.io.io_stream_source.OutputStreamSource
写入到指定输出流
writeToOutputStream(OutputStream) - Method in class cool.scx.io.io_stream_source.PathSource
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.io_stream_source.RawInputStreamSource
 
writeToOutputStream(OutputStream) - Method in class cool.scx.io.zip.GzipBuilder
 
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
ZipBuilderItem(String, InputStreamSource) - Constructor for class cool.scx.io.zip.ZipBuilderItem
 
zipDataSource() - Method in class cool.scx.io.zip.ZipBuilderItem
 
ZipEntrySource - Class in cool.scx.io.io_stream_source
 
ZipEntrySource(ZipEntry, ZipFile) - Constructor for class cool.scx.io.io_stream_source.ZipEntrySource
 
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
 
A B C D E F G H I K L M N O P R S T U V W Z _ 
All Classes and Interfaces|All Packages|Serialized Form