| Package | Description |
|---|---|
| org.aoju.bus.core.io.segment | |
| org.aoju.bus.core.utils |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BufferedSource
内部保存一个缓冲区,以便调用者可以在没有性能的情况下进行少量读取
它还允许客户端提前读取,在消费之前进行必要的缓冲输入
|
| Modifier and Type | Class and Description |
|---|---|
class |
Buffer
内存中字节的集合.
|
class |
ForwardingSource
将调用转发给另一个调用的
Source |
class |
GzipSource
解压读取数据
|
class |
HashingSource
计算其提供的全部字节流的散列的源。若要使用,请创建
使用您首选的哈希算法实例。通过读取源文件的所有字节来耗尽源文件
然后调用
HashingSource.hash()来计算最终的哈希值 |
class |
InflaterSource
解压从另一个源读取的数据.
|
class |
RealBufferedSource |
| Modifier and Type | Field and Description |
|---|---|
Source |
RealBufferedSource.source |
| Modifier and Type | Method and Description |
|---|---|
Source |
ForwardingSource.delegate() |
Source |
FileSystem.source(File file) |
Source |
AsyncTimeout.source(Source source) |
| Modifier and Type | Method and Description |
|---|---|
static HashingSource |
HashingSource.hmacSha1(Source source,
ByteString key) |
static HashingSource |
HashingSource.hmacSha256(Source source,
ByteString key) |
static HashingSource |
HashingSource.md5(Source source) |
static HashingSource |
HashingSource.sha1(Source source) |
static HashingSource |
HashingSource.sha256(Source source) |
Source |
AsyncTimeout.source(Source source) |
BufferedSink |
Buffer.write(Source source,
long byteCount) |
BufferedSink |
RealBufferedSink.write(Source source,
long byteCount) |
BufferedSink |
BufferedSink.write(Source source,
long byteCount) |
long |
Buffer.writeAll(Source source) |
long |
RealBufferedSink.writeAll(Source source) |
long |
BufferedSink.writeAll(Source source) |
| Constructor and Description |
|---|
ForwardingSource(Source delegate) |
GzipSource(Source source) |
InflaterSource(Source source,
Inflater inflater) |
RealBufferedSource(Source source) |
| Modifier and Type | Method and Description |
|---|---|
static Source |
IoUtils.source(File file) |
static Source |
IoUtils.source(InputStream in) |
static Source |
IoUtils.source(Path path,
OpenOption... options) |
static Source |
IoUtils.source(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
static BufferedSource |
IoUtils.buffer(Source source) |
Copyright © 2019. All rights reserved.