bufferSize, count, flushEveryBuffer, progress
Constructor and Description |
---|
ReaderWriterCopier()
构造
|
ReaderWriterCopier(int bufferSize)
构造
|
ReaderWriterCopier(int bufferSize,
long count)
构造
|
ReaderWriterCopier(int bufferSize,
long count,
StreamProgress progress)
构造
|
Modifier and Type | Method and Description |
---|---|
long |
copy(Reader source,
Writer target)
执行拷贝
|
bufferSize, setFlushEveryBuffer
public ReaderWriterCopier()
public ReaderWriterCopier(int bufferSize)
bufferSize
- 缓存大小public ReaderWriterCopier(int bufferSize, long count)
bufferSize
- 缓存大小count
- 拷贝总数public ReaderWriterCopier(int bufferSize, long count, StreamProgress progress)
bufferSize
- 缓存大小count
- 拷贝总数progress
- 进度条Copyright © 2024. All rights reserved.