Interface ByteSupplier
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BoundaryByteSupplier, BufferedInputStreamByteSupplier, ByteArrayByteSupplier, ByteInputByteSupplier, CacheByteSupplier, FixedLengthByteSupplier, InputStreamByteSupplier, SequenceByteSupplier, SpecialCloseByteSupplier
ByteSupplier
-
它负责从某个上游来源 (如 InputStream, Decoder, File, 甚至另一个 ByteSupplier) 中, 执行 "提取 / 缓冲 / 解码 / 转换 / 分帧 / 拆包" 等行为, 并以统一格式输出 ByteChunk.
-
本质是 数据的生产者 (也可称为转换器) + 资源持有者.
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
-
Method Details
-
get
-
close
如果持有底层资源, 在此方法释放资源- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-