| 接口 | 说明 |
|---|---|
| InputStreamNio |
增强的输入流(支持ByteBuffer)
|
| OutputStreamNio |
增强的输出流(支持ByteBuffer)
|
| OutputStreamObserve |
用于支持置入导流到观察的流通道
|
| OutputStreamStay |
暂留在缓存中的输出流,主要用于支撑在数据完成后再flush的场景
|
| 类 | 说明 |
|---|---|
| ByteBufferInputStream |
封装ByteBuffer的InputStream
|
| BytesInputStream |
扩展ByteArrayInputStream,实现InputStreamNio接口
|
| BytesOutputStream |
扩展ByteArrayOutputStream用于直接获取到内部的byte[]
|
| CachedInputStream |
缓存输入流支持mark/reset对流重读取
|
| CachedInputStream.AtBuffers |
先使用缓冲区池暂存,再合并到合适的字节数组内
|
| OutputStreamStay.Wrap |
把OutputStream封装为支持在缓冲暂留
|
| 异常错误 | 说明 |
|---|---|
| StayException |
不能暂留在缓存,通常是数据已经flush
|
Copyright © 2022. All rights reserved.