Package | Description |
---|---|
top.hmtools.io |
数据输入/输出流相关工具类
|
Modifier and Type | Method and Description |
---|---|
static long |
IoTools.copy(InputStream input,
OutputStream output,
byte[] buffer,
IStreamProgress streamProgress)
数据流复制
|
static long |
IoTools.copy(InputStream input,
OutputStream output,
IStreamProgress streamProgress)
数据流复制
|
static long |
IoTools.copyLarge(InputStream input,
OutputStream output,
byte[] buffer,
IStreamProgress streamProgress)
支持复制容量超过2GB的数据流
|
static long |
NioTools.copyLarge(InputStream inputStream,
OutputStream outputStream,
int bufferSize,
IStreamProgress streamProgress)
复制流
|
static long |
NioTools.copyLarge(InputStream inputStream,
OutputStream outputStream,
int bufferSize,
long offSet,
IStreamProgress streamProgress)
从输入流的指定位置复制流
|
static long |
IoTools.copyLarge(InputStream input,
OutputStream output,
IStreamProgress streamProgress)
支持复制容量超过2GB的数据流
|
static long |
IoTools.copyLarge(InputStream input,
OutputStream output,
long inputOffset,
IStreamProgress streamProgress)
从指定位置复制数据流,使用缺省的缓存大小
|
static long |
IoTools.copyLarge(InputStream input,
OutputStream output,
long inputOffset,
long length,
byte[] buffer,
IStreamProgress streamProgress)
从指定位置复制指定长度的数据流
|
static long |
IoTools.copyLarge(InputStream input,
OutputStream output,
long inputOffset,
long length,
IStreamProgress streamProgress)
从指定位置复制指定长度的数据流,使用缺省的缓存大小
|
static long |
NioTools.copyLarge(ReadableByteChannel inChannel,
WritableByteChannel outChannel,
int bufferSize,
IStreamProgress streamProgress)
复制流
|
static byte[] |
NioFileTools.readOneFileToByte(String pathname,
IStreamProgress streamProgress)
nio基于缓冲区读取指定路径的一个文件
可用于读取大文件,在硬件配置足够的情况下 |
static List<byte[]> |
NioFileTools.readSomeFile(IStreamProgress streamProgress,
String... pathnames)
读取多个文件 到 列表
|
static List<String> |
NioFileTools.readSomeFileToStrs(IStreamProgress streamProgress,
String charsetName,
String... pathnames)
读取多个文件 到 字符串列表
|
static byte[] |
IoTools.readToByte(InputStream input,
int offset,
int length,
IStreamProgress streamProgress)
读取数据流
|
static byte[] |
NioTools.readToByte(InputStream inputStream,
int bufferSize,
IStreamProgress streamProgress)
读取数据流到byte数组
|
static byte[] |
NioTools.readToByte(InputStream inputStream,
IStreamProgress streamProgress)
读取数据流到byte数组
|
static String |
IoTools.readToStringUTF8(InputStream input,
int offset,
int length,
IStreamProgress streamProgress)
读取数据流到字符串,以utf-8字符编码
|
Copyright © 2018. All rights reserved.