Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(ByteChunk) - Method in class cool.scx.io.consumer.ByteArrayByteConsumer
- accept(ByteChunk) - Method in class cool.scx.io.consumer.ByteChunkByteConsumer
- accept(ByteChunk) - Method in interface cool.scx.io.consumer.ByteConsumer
- accept(ByteChunk) - Method in class cool.scx.io.consumer.FillByteArrayByteConsumer
- accept(ByteChunk) - Method in class cool.scx.io.consumer.OutputStreamByteConsumer
- accept(ByteChunk) - Method in class cool.scx.io.consumer.SkipByteConsumer
- AlreadyClosedException - Exception Class in cool.scx.io.exception
-
输入/输出 已经被关闭了, 本质上是一种状态异常.
- AlreadyClosedException() - Constructor for exception class cool.scx.io.exception.AlreadyClosedException
- available() - Method in class cool.scx.io.adapter.ByteInputInputStream
B
- BoundaryByteSupplier - Class in cool.scx.io.supplier
-
BoundaryByteSupplier
- BoundaryByteSupplier(ByteInput, byte[]) - Constructor for class cool.scx.io.supplier.BoundaryByteSupplier
- BoundaryByteSupplier(ByteInput, byte[], boolean) - Constructor for class cool.scx.io.supplier.BoundaryByteSupplier
- BufferedInputStreamByteSupplier - Class in cool.scx.io.supplier
-
BufferedInputStreamByteSupplier 和
InputStreamByteSupplier性能表现相反 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会差一点 因为多了一次复制 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会好一点 因为只会创建一个较小的数组并复制数据 - BufferedInputStreamByteSupplier(InputStream) - Constructor for class cool.scx.io.supplier.BufferedInputStreamByteSupplier
- BufferedInputStreamByteSupplier(InputStream, int) - Constructor for class cool.scx.io.supplier.BufferedInputStreamByteSupplier
- buildLPS(byte[]) - Static method in class cool.scx.io.indexer.KMPByteIndexer
- ByteArrayByteConsumer - Class in cool.scx.io.consumer
-
ByteArrayByteConsumer
- ByteArrayByteConsumer() - Constructor for class cool.scx.io.consumer.ByteArrayByteConsumer
- ByteArrayByteSupplier - Class in cool.scx.io.supplier
-
ByteArrayByteSupplier
- ByteArrayByteSupplier(byte[]...) - Constructor for class cool.scx.io.supplier.ByteArrayByteSupplier
- ByteArrayByteSupplier(Collection) - Constructor for class cool.scx.io.supplier.ByteArrayByteSupplier
- byteChunk() - Method in class cool.scx.io.consumer.ByteChunkByteConsumer
- ByteChunk - Class in cool.scx.io
-
ByteChunk
- ByteChunk(byte[]) - Constructor for class cool.scx.io.ByteChunk
- ByteChunk(byte[], int, int) - Constructor for class cool.scx.io.ByteChunk
- ByteChunkByteConsumer - Class in cool.scx.io.consumer
-
ByteChunkByteConsumer
- ByteChunkByteConsumer() - Constructor for class cool.scx.io.consumer.ByteChunkByteConsumer
- ByteConsumer<X> - Interface in cool.scx.io.consumer
-
ByteConsumer
- ByteIndexer - Interface in cool.scx.io.indexer
-
ByteIndexer
- byteInput() - Method in interface cool.scx.io.adapter.ByteInputAdapter
- byteInput() - Method in class cool.scx.io.adapter.ByteInputInputStream
- ByteInput - Interface in cool.scx.io
-
ByteInput
- ByteInputAdapter - Interface in cool.scx.io.adapter
-
ByteInputAdapter
- ByteInputInputStream - Class in cool.scx.io.adapter
-
ByteInputInputStream
- ByteInputInputStream(ByteInput) - Constructor for class cool.scx.io.adapter.ByteInputInputStream
- byteInputToInputStream(ByteInput) - Static method in interface cool.scx.io.adapter.ByteInputAdapter
- byteOutput() - Method in interface cool.scx.io.adapter.ByteOutputAdapter
- byteOutput() - Method in class cool.scx.io.adapter.ByteOutputOutputStream
- ByteOutput - Interface in cool.scx.io
-
ByteOutput
- ByteOutputAdapter - Interface in cool.scx.io.adapter
-
ByteOutputAdapter
- ByteOutputOutputStream - Class in cool.scx.io.adapter
-
ByteOutputOutputStream
- ByteOutputOutputStream(ByteOutput) - Constructor for class cool.scx.io.adapter.ByteOutputOutputStream
- byteOutputToOutputStream(ByteOutput) - Static method in interface cool.scx.io.adapter.ByteOutputAdapter
- bytes - Variable in class cool.scx.io.ByteChunk
- bytes() - Method in class cool.scx.io.consumer.ByteArrayByteConsumer
- bytesFilled() - Method in class cool.scx.io.consumer.FillByteArrayByteConsumer
- bytesSkipped() - Method in class cool.scx.io.consumer.SkipByteConsumer
- ByteSupplier - Interface in cool.scx.io.supplier
-
ByteSupplier
- bytesWritten() - Method in class cool.scx.io.consumer.OutputStreamByteConsumer
-
写入的总长度
C
- close() - Method in class cool.scx.io.adapter.ByteInputInputStream
- close() - Method in class cool.scx.io.adapter.ByteOutputOutputStream
- close() - Method in interface cool.scx.io.ByteInput
- close() - Method in interface cool.scx.io.ByteOutput
- close() - Method in class cool.scx.io.DefaultByteInput
- close() - Method in class cool.scx.io.NullByteInput
- close() - Method in class cool.scx.io.NullByteOutput
- close() - Method in class cool.scx.io.OutputStreamByteOutput
- close() - Method in class cool.scx.io.supplier.BoundaryByteSupplier
- close() - Method in class cool.scx.io.supplier.BufferedInputStreamByteSupplier
- close() - Method in interface cool.scx.io.supplier.ByteSupplier
- close() - Method in class cool.scx.io.supplier.FixedLengthByteSupplier
- close() - Method in class cool.scx.io.supplier.InputStreamByteSupplier
- close() - Method in class cool.scx.io.supplier.SequenceByteSupplier
-
需要保证在任何情况下都能尽可能的关闭 所有的资源(包括剩余的)
- cool.scx.io - package cool.scx.io
- cool.scx.io.adapter - package cool.scx.io.adapter
- cool.scx.io.consumer - package cool.scx.io.consumer
- cool.scx.io.exception - package cool.scx.io.exception
- cool.scx.io.indexer - package cool.scx.io.indexer
- cool.scx.io.supplier - package cool.scx.io.supplier
D
- DefaultByteInput - Class in cool.scx.io
-
DefaultByteInput
- DefaultByteInput(ByteSupplier) - Constructor for class cool.scx.io.DefaultByteInput
E
- EMPTY_CHUNK - Static variable in class cool.scx.io.ByteChunk
- end - Variable in class cool.scx.io.ByteChunk
F
- FillByteArrayByteConsumer - Class in cool.scx.io.consumer
-
FillByteArrayByteConsumer
- FillByteArrayByteConsumer(byte[]) - Constructor for class cool.scx.io.consumer.FillByteArrayByteConsumer
- FillByteArrayByteConsumer(byte[], int, int) - Constructor for class cool.scx.io.consumer.FillByteArrayByteConsumer
- FixedLengthByteSupplier - Class in cool.scx.io.supplier
-
FixedLengthByteSupplier
- FixedLengthByteSupplier(ByteInput, long) - Constructor for class cool.scx.io.supplier.FixedLengthByteSupplier
- FixedLengthByteSupplier(ByteInput, long, boolean) - Constructor for class cool.scx.io.supplier.FixedLengthByteSupplier
- flush() - Method in class cool.scx.io.adapter.ByteOutputOutputStream
- flush() - Method in interface cool.scx.io.ByteOutput
- flush() - Method in class cool.scx.io.NullByteOutput
- flush() - Method in class cool.scx.io.OutputStreamByteOutput
G
- get() - Method in class cool.scx.io.supplier.BoundaryByteSupplier
- get() - Method in class cool.scx.io.supplier.BufferedInputStreamByteSupplier
- get() - Method in class cool.scx.io.supplier.ByteArrayByteSupplier
- get() - Method in interface cool.scx.io.supplier.ByteSupplier
-
如果没有数据请返回 null
- get() - Method in class cool.scx.io.supplier.FixedLengthByteSupplier
- get() - Method in class cool.scx.io.supplier.InputStreamByteSupplier
- get() - Method in class cool.scx.io.supplier.SequenceByteSupplier
- getByte(int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
- getBytes() - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
- getBytes(int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
- getBytes(int, int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
I
- indexOf(byte) - Method in interface cool.scx.io.ByteInput
- indexOf(byte[]) - Method in interface cool.scx.io.ByteInput
- indexOf(byte[], long) - Method in interface cool.scx.io.ByteInput
- indexOf(byte, long) - Method in interface cool.scx.io.ByteInput
- indexOf(ByteChunk) - Method in interface cool.scx.io.indexer.ByteIndexer
-
支持跨 chunk 的回溯匹配, 因此返回值可能为负数 若未匹配到 请返回 NO_MATCH 可以不处理 空匹配模式 的边界情况 (上层会根据 isEmptyPattern 直接走快速路径), 但要保证 isEmptyPattern 实现正确
- indexOf(ByteChunk) - Method in class cool.scx.io.indexer.KMPByteIndexer
- indexOf(ByteChunk) - Method in class cool.scx.io.indexer.SingleByteIndexer
- indexOf(ByteIndexer, long) - Method in interface cool.scx.io.ByteInput
-
在最多 maxLength 个字节中查找匹配 (或直到 EOF).
- indexOf(ByteIndexer, long) - Method in class cool.scx.io.DefaultByteInput
- indexOf(ByteIndexer, long) - Method in class cool.scx.io.NullByteInput
- InputStreamByteSupplier - Class in cool.scx.io.supplier
-
InputStreamByteSupplier 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会高一点 因为只会进行数组创建这一步 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会差一点 因为每次都会创建一个 bufferLength 大小的数组 如果启用压缩则会产生第二次复制 增加时间 如果未启用压缩则会造成内存上的一些浪费 这时建议使用
BufferedInputStreamByteSupplier - InputStreamByteSupplier(InputStream) - Constructor for class cool.scx.io.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, boolean) - Constructor for class cool.scx.io.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, int) - Constructor for class cool.scx.io.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, int, boolean) - Constructor for class cool.scx.io.supplier.InputStreamByteSupplier
- inputStreamToByteInput(InputStream) - Static method in interface cool.scx.io.adapter.ByteInputAdapter
- isClosed() - Method in interface cool.scx.io.ByteInput
- isClosed() - Method in interface cool.scx.io.ByteOutput
- isClosed() - Method in class cool.scx.io.DefaultByteInput
- isClosed() - Method in class cool.scx.io.NullByteInput
- isClosed() - Method in class cool.scx.io.NullByteOutput
- isClosed() - Method in class cool.scx.io.OutputStreamByteOutput
- isEmptyPattern() - Method in interface cool.scx.io.indexer.ByteIndexer
-
是否为空匹配模式
- isEmptyPattern() - Method in class cool.scx.io.indexer.KMPByteIndexer
- isEmptyPattern() - Method in class cool.scx.io.indexer.SingleByteIndexer
K
- KMPByteIndexer - Class in cool.scx.io.indexer
-
KMPByteIndexer
- KMPByteIndexer(byte[]) - Constructor for class cool.scx.io.indexer.KMPByteIndexer
L
M
- mark() - Method in interface cool.scx.io.ByteInput
-
标记当前读取位置.
- mark() - Method in class cool.scx.io.DefaultByteInput
- mark() - Method in class cool.scx.io.NullByteInput
- mark(int) - Method in class cool.scx.io.adapter.ByteInputInputStream
- markSupported() - Method in class cool.scx.io.adapter.ByteInputInputStream
- matchedLength() - Method in class cool.scx.io.indexer.KMPByteIndexer
-
当前已匹配的模式串长度
N
- NO_MATCH - Static variable in interface cool.scx.io.indexer.ByteIndexer
- NoMatchFoundException - Exception Class in cool.scx.io.exception
-
没有找到匹配的字节序列, 本质上是一种控制流信号.
- NoMatchFoundException() - Constructor for exception class cool.scx.io.exception.NoMatchFoundException
- NoMoreDataException - Exception Class in cool.scx.io.exception
-
没有更多可用的数据, 本质上是一种正常的流结束信号.
- NoMoreDataException() - Constructor for exception class cool.scx.io.exception.NoMoreDataException
- NullByteInput - Class in cool.scx.io
-
NullByteInput
- NullByteInput() - Constructor for class cool.scx.io.NullByteInput
- NullByteOutput - Class in cool.scx.io
-
NullByteOutput
- NullByteOutput() - Constructor for class cool.scx.io.NullByteOutput
O
- outputStream() - Method in class cool.scx.io.OutputStreamByteOutput
- OutputStreamByteConsumer - Class in cool.scx.io.consumer
-
OutputStreamByteConsumer
- OutputStreamByteConsumer(OutputStream) - Constructor for class cool.scx.io.consumer.OutputStreamByteConsumer
- OutputStreamByteOutput - Class in cool.scx.io
-
OutputStreamByteOutput
- OutputStreamByteOutput(OutputStream) - Constructor for class cool.scx.io.OutputStreamByteOutput
- outputStreamToByteOutput(OutputStream) - Static method in interface cool.scx.io.adapter.ByteOutputAdapter
P
- pattern() - Method in class cool.scx.io.indexer.KMPByteIndexer
- peek() - Method in interface cool.scx.io.ByteInput
-
查看字节, 行为参考
ByteInput.read() - peek() - Method in class cool.scx.io.DefaultByteInput
- peek() - Method in class cool.scx.io.NullByteInput
- peek(int) - Method in interface cool.scx.io.ByteInput
- peek(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
查看字节, 行为参考
ByteInput.read(ByteConsumer, long) - peek(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- peek(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
- peekAll() - Method in interface cool.scx.io.ByteInput
- peekAll(ByteConsumer) - Method in interface cool.scx.io.ByteInput
- peekFully(int) - Method in interface cool.scx.io.ByteInput
- peekFully(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
查看字节, 行为参考
ByteInput.readFully(ByteConsumer, long) - peekFully(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- peekFully(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
- peekUntil(byte) - Method in interface cool.scx.io.ByteInput
- peekUntil(byte[]) - Method in interface cool.scx.io.ByteInput
- peekUntil(byte[], int) - Method in interface cool.scx.io.ByteInput
- peekUntil(byte, int) - Method in interface cool.scx.io.ByteInput
- peekUpTo(int) - Method in interface cool.scx.io.ByteInput
- peekUpTo(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
查看字节, 行为参考
ByteInput.readUpTo(ByteConsumer, long) - peekUpTo(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- peekUpTo(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
R
- read() - Method in class cool.scx.io.adapter.ByteInputInputStream
- read() - Method in interface cool.scx.io.ByteInput
-
读取单个字节
- read() - Method in class cool.scx.io.DefaultByteInput
- read() - Method in class cool.scx.io.NullByteInput
- read(byte[], int, int) - Method in class cool.scx.io.adapter.ByteInputInputStream
- read(int) - Method in interface cool.scx.io.ByteInput
- read(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
最多读取 maxLength 个字节, 可能少于 maxLength (即使尚未遇到 EOF, 如底层缓冲区不足)
- read(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- read(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
- readAll() - Method in interface cool.scx.io.ByteInput
- readAll(ByteConsumer) - Method in interface cool.scx.io.ByteInput
- readAllBytes() - Method in class cool.scx.io.adapter.ByteInputInputStream
- readFully(int) - Method in interface cool.scx.io.ByteInput
- readFully(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
恰好读取 length 个字节
- readFully(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- readFully(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
- readNBytes(byte[], int, int) - Method in class cool.scx.io.adapter.ByteInputInputStream
- readNBytes(int) - Method in class cool.scx.io.adapter.ByteInputInputStream
- readUntil(byte) - Method in interface cool.scx.io.ByteInput
- readUntil(byte[]) - Method in interface cool.scx.io.ByteInput
- readUntil(byte[], int) - Method in interface cool.scx.io.ByteInput
-
从当前 ByteInput 中读取数据直到遇到指定分隔符 (单字节或多字节).
- readUntil(byte, int) - Method in interface cool.scx.io.ByteInput
- readUpTo(int) - Method in interface cool.scx.io.ByteInput
- readUpTo(ByteConsumer, long) - Method in interface cool.scx.io.ByteInput
-
尽量读取 length 个字节, 可能少于 length (仅在 EOF 时发生)
- readUpTo(ByteConsumer, long) - Method in class cool.scx.io.DefaultByteInput
- readUpTo(ByteConsumer, long) - Method in class cool.scx.io.NullByteInput
- reset() - Method in class cool.scx.io.adapter.ByteInputInputStream
- reset() - Method in interface cool.scx.io.ByteInput
-
将读取位置恢复到上一次 mark() 时的状态.
- reset() - Method in class cool.scx.io.DefaultByteInput
- reset() - Method in class cool.scx.io.indexer.KMPByteIndexer
- reset() - Method in class cool.scx.io.NullByteInput
S
- ScxIOException - Exception Class in cool.scx.io.exception
-
底层 IO 异常, 通常会包裹一个
IOException. - ScxIOException() - Constructor for exception class cool.scx.io.exception.ScxIOException
- ScxIOException(String) - Constructor for exception class cool.scx.io.exception.ScxIOException
- ScxIOException(String, Throwable) - Constructor for exception class cool.scx.io.exception.ScxIOException
- ScxIOException(Throwable) - Constructor for exception class cool.scx.io.exception.ScxIOException
- SequenceByteSupplier - Class in cool.scx.io.supplier
-
SequenceByteSupplier
- SequenceByteSupplier(ByteSupplier...) - Constructor for class cool.scx.io.supplier.SequenceByteSupplier
- SequenceByteSupplier(Collection, boolean) - Constructor for class cool.scx.io.supplier.SequenceByteSupplier
- SingleByteIndexer - Class in cool.scx.io.indexer
-
SingleByteIndexer
- SingleByteIndexer(byte) - Constructor for class cool.scx.io.indexer.SingleByteIndexer
- skip(long) - Method in class cool.scx.io.adapter.ByteInputInputStream
- skip(long) - Method in interface cool.scx.io.ByteInput
- skipAll() - Method in interface cool.scx.io.ByteInput
- SkipByteConsumer - Class in cool.scx.io.consumer
-
SkipByteConsumer
- SkipByteConsumer() - Constructor for class cool.scx.io.consumer.SkipByteConsumer
- skipFully(long) - Method in interface cool.scx.io.ByteInput
- skipNBytes(long) - Method in class cool.scx.io.adapter.ByteInputInputStream
- skipUpTo(long) - Method in interface cool.scx.io.ByteInput
- start - Variable in class cool.scx.io.ByteChunk
- subChunk(int, int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
T
- toString() - Method in class cool.scx.io.ByteChunk
- toString(int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
- toString(int, int) - Method in class cool.scx.io.ByteChunk
-
相对 索引 0 起始
- transferTo(OutputStream) - Method in class cool.scx.io.adapter.ByteInputInputStream
W
- write(byte) - Method in interface cool.scx.io.ByteOutput
- write(byte) - Method in class cool.scx.io.NullByteOutput
- write(byte) - Method in class cool.scx.io.OutputStreamByteOutput
- write(byte[]) - Method in class cool.scx.io.adapter.ByteOutputOutputStream
- write(byte[]) - Method in interface cool.scx.io.ByteOutput
- write(byte[]) - Method in class cool.scx.io.NullByteOutput
- write(byte[]) - Method in class cool.scx.io.OutputStreamByteOutput
- write(byte[], int, int) - Method in class cool.scx.io.adapter.ByteOutputOutputStream
- write(byte[], int, int) - Method in interface cool.scx.io.ByteOutput
- write(byte[], int, int) - Method in class cool.scx.io.NullByteOutput
- write(byte[], int, int) - Method in class cool.scx.io.OutputStreamByteOutput
- write(int) - Method in class cool.scx.io.adapter.ByteOutputOutputStream
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form