| 接口 | 说明 |
|---|---|
| LineProcessor<T> |
A callback to be used with the streaming
readLines methods. |
| 类 | 说明 |
|---|---|
| ByteArray |
代表一个byte数组。
|
| ByteArrayOutputStream |
非同步的ByteArrayOutputStream替换方案, 执行toByteArray() 方法时返回的是只读的内部字节数组, 避免了没有必要的字节复制.
|
| CharStreams |
Provides utility methods for working with character streams.
|
| FastByteArrayOutputStream |
基于快速缓冲FastByteBuffer的OutputStream,随着数据的增长自动扩充缓冲区
可以通过
FastByteArrayOutputStream.toByteArray()和 FastByteArrayOutputStream.toString()来获取数据
FastByteArrayOutputStream.close()方法无任何效果,当流被关闭后不会抛出IOException
这种设计避免重新分配内存块而是分配新增的缓冲区,缓冲区不会被GC,数据也不会被拷贝到其他缓冲区。 |
| FastByteBuffer |
快速缓冲,将数据存放在缓冲集中,取代以往的单一数组
|
| LineReader |
A class for reading lines of text.
|
| StringBuilderWriter |
Writer implementation that outputs to a StringBuilder. |
Copyright © 2016. All rights reserved.