Index
All Classes and Interfaces|All Packages|Serialized Form
A
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.ByteArrayByteConsumer
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.ByteChunkByteConsumer
- accept(ByteChunk) - Method in interface cool.scx.bytes.consumer.ByteConsumer
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.FillByteArrayByteConsumer
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.FillByteBufferByteConsumer
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.OutputStreamByteConsumer
- accept(ByteChunk) - Method in class cool.scx.bytes.consumer.SkipByteConsumer
- appendByteChunk(ByteChunk) - Method in class cool.scx.bytes.ByteReader
- available() - Method in class cool.scx.bytes.ByteNode
B
- BoundaryByteSupplier - Class in cool.scx.bytes.supplier
- BoundaryByteSupplier(IByteReader, byte[]) - Constructor for class cool.scx.bytes.supplier.BoundaryByteSupplier
- BoundaryByteSupplier(IByteReader, byte[], int) - Constructor for class cool.scx.bytes.supplier.BoundaryByteSupplier
- BufferedByteChannelByteSupplier - Class in cool.scx.bytes.supplier
-
ByteChannelDataSupplier
- BufferedByteChannelByteSupplier(ReadableByteChannel) - Constructor for class cool.scx.bytes.supplier.BufferedByteChannelByteSupplier
- BufferedByteChannelByteSupplier(ReadableByteChannel, int) - Constructor for class cool.scx.bytes.supplier.BufferedByteChannelByteSupplier
- BufferedInputStreamByteSupplier - Class in cool.scx.bytes.supplier
-
BufferedInputStreamDataSupplier 和
InputStreamByteSupplier性能相反 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会差一点 因为多了一次复制 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会好一点 因为只会创建一个较小的数组并复制数据 - BufferedInputStreamByteSupplier(InputStream) - Constructor for class cool.scx.bytes.supplier.BufferedInputStreamByteSupplier
- BufferedInputStreamByteSupplier(InputStream, int) - Constructor for class cool.scx.bytes.supplier.BufferedInputStreamByteSupplier
- ByteArrayByteConsumer - Class in cool.scx.bytes.consumer
-
ByteArrayDataConsumer
- ByteArrayByteConsumer() - Constructor for class cool.scx.bytes.consumer.ByteArrayByteConsumer
- ByteArrayByteSupplier - Class in cool.scx.bytes.supplier
-
ByteArrayByteSupplier
- ByteArrayByteSupplier(byte[]) - Constructor for class cool.scx.bytes.supplier.ByteArrayByteSupplier
- ByteArrayByteSupplier(byte[]...) - Constructor for class cool.scx.bytes.supplier.ByteArrayByteSupplier
- ByteArrayByteSupplier(Collection<byte[]>) - Constructor for class cool.scx.bytes.supplier.ByteArrayByteSupplier
- ByteChannelByteSupplier - Class in cool.scx.bytes.supplier
-
ByteChannelDataSupplier
- ByteChannelByteSupplier(ReadableByteChannel) - Constructor for class cool.scx.bytes.supplier.ByteChannelByteSupplier
- ByteChannelByteSupplier(ReadableByteChannel, boolean) - Constructor for class cool.scx.bytes.supplier.ByteChannelByteSupplier
- ByteChannelByteSupplier(ReadableByteChannel, int) - Constructor for class cool.scx.bytes.supplier.ByteChannelByteSupplier
- ByteChannelByteSupplier(ReadableByteChannel, int, boolean) - Constructor for class cool.scx.bytes.supplier.ByteChannelByteSupplier
- ByteChunk - Class in cool.scx.bytes
-
ByteChunk
- ByteChunk(byte[]) - Constructor for class cool.scx.bytes.ByteChunk
- ByteChunk(byte[], int, int) - Constructor for class cool.scx.bytes.ByteChunk
- ByteChunkByteConsumer - Class in cool.scx.bytes.consumer
-
接受为单个 DataNode
- ByteChunkByteConsumer() - Constructor for class cool.scx.bytes.consumer.ByteChunkByteConsumer
- ByteConsumer - Interface in cool.scx.bytes.consumer
-
DataConsumer
- byteCount() - Method in class cool.scx.bytes.consumer.OutputStreamByteConsumer
- ByteIndexer - Interface in cool.scx.bytes.indexer
-
ByteIndexer
- ByteNode - Class in cool.scx.bytes
-
ByteNode
- ByteNode(ByteChunk) - Constructor for class cool.scx.bytes.ByteNode
- ByteReader - Class in cool.scx.bytes
-
ByteReader
- ByteReader() - Constructor for class cool.scx.bytes.ByteReader
- ByteReader(ByteSupplier) - Constructor for class cool.scx.bytes.ByteReader
- bytes - Variable in class cool.scx.bytes.ByteChunk
- byteSupplier - Variable in class cool.scx.bytes.ByteReader
- ByteSupplier - Interface in cool.scx.bytes.supplier
-
数据生产者
- ByteSupplierException - Exception Class in cool.scx.bytes.exception
-
数据拉取器异常
- ByteSupplierException(String) - Constructor for exception class cool.scx.bytes.exception.ByteSupplierException
- ByteSupplierException(String, Throwable) - Constructor for exception class cool.scx.bytes.exception.ByteSupplierException
- ByteSupplierException(Throwable) - Constructor for exception class cool.scx.bytes.exception.ByteSupplierException
C
- chunk - Variable in class cool.scx.bytes.ByteNode
- computeLPSArray(byte[]) - Static method in class cool.scx.bytes.indexer.KMPByteIndexer
- cool.scx.bytes - package cool.scx.bytes
- cool.scx.bytes.consumer - package cool.scx.bytes.consumer
- cool.scx.bytes.exception - package cool.scx.bytes.exception
- cool.scx.bytes.indexer - package cool.scx.bytes.indexer
- cool.scx.bytes.supplier - package cool.scx.bytes.supplier
E
- end - Variable in class cool.scx.bytes.ByteChunk
- ensureAvailable(long) - Method in class cool.scx.bytes.ByteReader
- ensureAvailableOrThrow(long) - Method in class cool.scx.bytes.ByteReader
F
- FillByteArrayByteConsumer - Class in cool.scx.bytes.consumer
-
填充方式
- FillByteArrayByteConsumer(byte[], int, int) - Constructor for class cool.scx.bytes.consumer.FillByteArrayByteConsumer
- FillByteBufferByteConsumer - Class in cool.scx.bytes.consumer
-
填充方式
- FillByteBufferByteConsumer(ByteBuffer) - Constructor for class cool.scx.bytes.consumer.FillByteBufferByteConsumer
- findIndex(ByteIndexer, long, long) - Method in class cool.scx.bytes.ByteReader
G
- get() - Method in class cool.scx.bytes.supplier.BoundaryByteSupplier
- get() - Method in class cool.scx.bytes.supplier.BufferedByteChannelByteSupplier
- get() - Method in class cool.scx.bytes.supplier.BufferedInputStreamByteSupplier
- get() - Method in class cool.scx.bytes.supplier.ByteArrayByteSupplier
- get() - Method in class cool.scx.bytes.supplier.ByteChannelByteSupplier
- get() - Method in interface cool.scx.bytes.supplier.ByteSupplier
-
获取数据 如果没有数据请返回 null
- get() - Method in class cool.scx.bytes.supplier.InputStreamByteSupplier
- get() - Method in class cool.scx.bytes.supplier.SequenceByteSupplier
- getByte(int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
- getByteChunk() - Method in class cool.scx.bytes.consumer.ByteChunkByteConsumer
- getBytes() - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
- getBytes() - Method in class cool.scx.bytes.consumer.ByteArrayByteConsumer
- getBytes(int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
- getBytes(int, int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
- getFilledLength() - Method in class cool.scx.bytes.consumer.FillByteArrayByteConsumer
- getFilledLength() - Method in class cool.scx.bytes.consumer.FillByteBufferByteConsumer
H
- hasAvailable() - Method in class cool.scx.bytes.ByteNode
- head - Variable in class cool.scx.bytes.ByteReader
I
- IByteReader - Interface in cool.scx.bytes
-
IByteReader
- indexOf(byte) - Method in interface cool.scx.bytes.IByteReader
- indexOf(byte[]) - Method in interface cool.scx.bytes.IByteReader
- indexOf(byte[], long) - Method in interface cool.scx.bytes.IByteReader
- indexOf(byte[], long, long) - Method in interface cool.scx.bytes.IByteReader
- indexOf(byte, long) - Method in interface cool.scx.bytes.IByteReader
- indexOf(byte, long, long) - Method in interface cool.scx.bytes.IByteReader
- indexOf(ByteChunk) - Method in interface cool.scx.bytes.indexer.ByteIndexer
-
注意此方法支持回溯匹配 所以返回值可能出现负数 为了性能考虑 不使用异常来中断 当真正 未找到时 返回 Integer.MIN_VALUE 此方法会循环调用 所以注意内部处理 建议每次都重新创建
- indexOf(ByteChunk) - Method in class cool.scx.bytes.indexer.KMPByteIndexer
- indexOf(ByteChunk) - Method in class cool.scx.bytes.indexer.SimpleByteIndexer
- indexOf(ByteIndexer, long, long) - Method in class cool.scx.bytes.ByteReader
- indexOf(ByteIndexer, long, long) - Method in interface cool.scx.bytes.IByteReader
-
查找索引
- InputStreamByteSupplier - Class in cool.scx.bytes.supplier
-
InputStreamDataSupplier 1, 当大部分时候读取的数据长度等于 bufferLength 的时候, 性能会高一点 因为只会进行数组创建这一步 2, 当大部分时候读取的数据长度小于 bufferLength 的时候, 性能会差一点 因为每次都会创建一个 bufferLength 大小的数组 如果启用压缩则会产生第二次复制 增加时间 如果未启用压缩则会造成内存上的一些浪费 这时建议使用
BufferedInputStreamByteSupplier - InputStreamByteSupplier(InputStream) - Constructor for class cool.scx.bytes.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, boolean) - Constructor for class cool.scx.bytes.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, int) - Constructor for class cool.scx.bytes.supplier.InputStreamByteSupplier
- InputStreamByteSupplier(InputStream, int, boolean) - Constructor for class cool.scx.bytes.supplier.InputStreamByteSupplier
- inputStreamRead() - Method in class cool.scx.bytes.ByteReader
- inputStreamRead() - Method in interface cool.scx.bytes.IByteReader
-
InputStream 写法的 read
- inputStreamRead(byte[], int, int) - Method in class cool.scx.bytes.ByteReader
- inputStreamRead(byte[], int, int) - Method in interface cool.scx.bytes.IByteReader
-
InputStream 写法的 read
- inputStreamReadNBytes(long) - Method in class cool.scx.bytes.ByteReader
- inputStreamReadNBytes(long) - Method in interface cool.scx.bytes.IByteReader
-
InputStream 写法的 read
- inputStreamTransferTo(OutputStream) - Method in interface cool.scx.bytes.IByteReader
- inputStreamTransferTo(OutputStream, long) - Method in class cool.scx.bytes.ByteReader
- inputStreamTransferTo(OutputStream, long) - Method in interface cool.scx.bytes.IByteReader
-
InputStream 写法的 TransferTo
K
- KMPByteIndexer - Class in cool.scx.bytes.indexer
-
KMPDataIndexer
- KMPByteIndexer(byte[]) - Constructor for class cool.scx.bytes.indexer.KMPByteIndexer
L
M
- mark() - Method in class cool.scx.bytes.ByteReader
- mark() - Method in interface cool.scx.bytes.IByteReader
-
标记
- markNode - Variable in class cool.scx.bytes.ByteReader
- markNodePosition - Variable in class cool.scx.bytes.ByteReader
N
- next - Variable in class cool.scx.bytes.ByteNode
- NoMatchFoundException - Exception Class in cool.scx.bytes.exception
-
寻找匹配内容 查找失败的异常
- NoMatchFoundException() - Constructor for exception class cool.scx.bytes.exception.NoMatchFoundException
- NoMoreDataException - Exception Class in cool.scx.bytes.exception
-
读取数据时达到末尾的异常
- NoMoreDataException() - Constructor for exception class cool.scx.bytes.exception.NoMoreDataException
O
- OutputStreamByteConsumer - Class in cool.scx.bytes.consumer
-
写入到输出流中
- OutputStreamByteConsumer(OutputStream) - Constructor for class cool.scx.bytes.consumer.OutputStreamByteConsumer
P
- pattern() - Method in class cool.scx.bytes.indexer.KMPByteIndexer
- patternIndex() - Method in class cool.scx.bytes.indexer.KMPByteIndexer
- peek() - Method in class cool.scx.bytes.ByteReader
- peek() - Method in interface cool.scx.bytes.IByteReader
-
查看单个字节 (指针会移动) 当没有更多的数据时会抛出异常
- peek(int) - Method in interface cool.scx.bytes.IByteReader
- peek(int, long) - Method in interface cool.scx.bytes.IByteReader
- peek(ByteConsumer, long) - Method in interface cool.scx.bytes.IByteReader
- peek(ByteConsumer, long, long) - Method in class cool.scx.bytes.ByteReader
- peek(ByteConsumer, long, long) - Method in interface cool.scx.bytes.IByteReader
-
向 byteConsumer 写入指定长度字节 (指针不会移动) 当没有更多的数据时会抛出异常
- peekUntil(byte) - Method in interface cool.scx.bytes.IByteReader
- peekUntil(byte[]) - Method in interface cool.scx.bytes.IByteReader
- peekUntil(byte[], int) - Method in interface cool.scx.bytes.IByteReader
- peekUntil(byte, int) - Method in interface cool.scx.bytes.IByteReader
- position - Variable in class cool.scx.bytes.ByteNode
-
相对 索引 0 起始
- pullByteChunk() - Method in class cool.scx.bytes.ByteReader
R
- read() - Method in class cool.scx.bytes.ByteReader
- read() - Method in interface cool.scx.bytes.IByteReader
-
读取单个字节 (指针会移动) 当没有更多的数据时会抛出异常
- read(int) - Method in interface cool.scx.bytes.IByteReader
- read(int, long) - Method in interface cool.scx.bytes.IByteReader
- read(ByteConsumer, long) - Method in interface cool.scx.bytes.IByteReader
- read(ByteConsumer, long, long) - Method in class cool.scx.bytes.ByteReader
- read(ByteConsumer, long, long) - Method in interface cool.scx.bytes.IByteReader
-
向 byteConsumer 写入指定长度字节 (指针会移动) 当没有更多的数据时会抛出异常
- readUntil(byte) - Method in interface cool.scx.bytes.IByteReader
- readUntil(byte[]) - Method in interface cool.scx.bytes.IByteReader
- readUntil(byte[], int) - Method in interface cool.scx.bytes.IByteReader
- readUntil(byte, int) - Method in interface cool.scx.bytes.IByteReader
- reset() - Method in class cool.scx.bytes.ByteNode
- reset() - Method in class cool.scx.bytes.ByteReader
- reset() - Method in interface cool.scx.bytes.IByteReader
-
重置
- reset() - Method in class cool.scx.bytes.indexer.KMPByteIndexer
S
- SequenceByteSupplier - Class in cool.scx.bytes.supplier
-
可以一次性将多个 DataSupplier 组合成一个
- SequenceByteSupplier(ByteSupplier...) - Constructor for class cool.scx.bytes.supplier.SequenceByteSupplier
- SequenceByteSupplier(List<ByteSupplier>) - Constructor for class cool.scx.bytes.supplier.SequenceByteSupplier
- SimpleByteIndexer - Class in cool.scx.bytes.indexer
-
单字节查找器
- SimpleByteIndexer(byte) - Constructor for class cool.scx.bytes.indexer.SimpleByteIndexer
- skip(long) - Method in interface cool.scx.bytes.IByteReader
- skip(long, long) - Method in interface cool.scx.bytes.IByteReader
- SKIP_DATA_CONSUMER - Static variable in class cool.scx.bytes.consumer.SkipByteConsumer
- SkipByteConsumer - Class in cool.scx.bytes.consumer
-
直接跳过
- start - Variable in class cool.scx.bytes.ByteChunk
- subChunk(int, int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
T
- tail - Variable in class cool.scx.bytes.ByteReader
- toString() - Method in class cool.scx.bytes.ByteChunk
- toString() - Method in class cool.scx.bytes.ByteNode
- toString(int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
- toString(int, int) - Method in class cool.scx.bytes.ByteChunk
-
相对 索引 0 起始
W
- walk(ByteConsumer, long, boolean, long) - Method in class cool.scx.bytes.ByteReader
All Classes and Interfaces|All Packages|Serialized Form