| Package | Description |
|---|---|
| org.aoju.bus.core.io | |
| org.aoju.bus.core.io.file | |
| org.aoju.bus.core.utils |
| Class and Description |
|---|
| FastByteBuffer
代码移植自blade
快速缓冲,将数据存放在缓冲集中,取代以往的单一数组
|
| Class and Description |
|---|
| LineHandler
行处理器
|
| Class and Description |
|---|
| BOMInputStream
读取带BOM头的流内容,
getCharset()方法调用后会得到BOM头的编码,且会去除BOM头
00 00 FE FF = UTF-32, big-endian
FF FE 00 00 = UTF-32, little-endian
EF BB BF = UTF-8
FE FF = UTF-16, big-endian
FF FE = UTF-16, little-endian
使用:
String enc = "UTF-8"; // or NULL to use systemdefault
FileInputStream fis = new FileInputStream(file);
BOMInputStream uin = new BOMInputStream(fis, enc);
enc = uin.getCharset(); // check and skip possible BOM bytes
|
| FastByteArray
基于快速缓冲FastByteBuffer的OutputStream,自动扩充缓冲区
可以通过
FastByteArray.toByteArray()和 FastByteArray.toString()来获取数据
避免重新分配内存块而是分配新增的缓冲区,缓冲区不会被GC,数据也不会被拷贝到其他缓冲区 |
| LineHandler
行处理器
|
| StreamProgress
Stream进度条
|
Copyright © 2019. All rights reserved.