Package tech.mgl.core.stream
Class MGLStreamCopier
-
Field Summary
Fields inherited from class tech.mgl.core.stream.MGLIOCopier
bufferSize, count, flushEveryBuffer, progress -
Constructor Summary
ConstructorsConstructorDescription构造MGLStreamCopier(int bufferSize) 构造MGLStreamCopier(int bufferSize, long count) 构造MGLStreamCopier(int bufferSize, long count, MGLStreamProgress progress) 构造 -
Method Summary
Methods inherited from class tech.mgl.core.stream.MGLIOCopier
bufferSize, setFlushEveryBuffer
-
Constructor Details
-
MGLStreamCopier
public MGLStreamCopier()构造 -
MGLStreamCopier
public MGLStreamCopier(int bufferSize) 构造- Parameters:
bufferSize- 缓存大小
-
MGLStreamCopier
public MGLStreamCopier(int bufferSize, long count) 构造- Parameters:
bufferSize- 缓存大小count- 拷贝总数
-
MGLStreamCopier
构造- Parameters:
bufferSize- 缓存大小count- 拷贝总数progress- 进度条
-
-
Method Details
-
copy
Description copied from class:MGLIOCopier执行拷贝- Specified by:
copyin classMGLIOCopier<InputStream,OutputStream> - Parameters:
source- 拷贝源,如InputStream、Reader等target- 拷贝目标,如OutputStream、Writer等- Returns:
- 拷贝的实际长度
-