Package com.imyeyu.compress
Class Z7Compressor
- All Implemented Interfaces:
com.imyeyu.utils.OS.FileSystem
7z 压缩器
- Version:
- 2024-06-30 19:40
- Author:
- 夜雨
-
Field Summary
Fields inherited from class com.imyeyu.compress.AbstractRunner
fileCallback, isInterrupt, isPause, pauseLock, progressCallbackFields inherited from interface com.imyeyu.utils.OS.FileSystem
COMPARATOR_FILE_NAME, SEP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Z7Compressor创建压缩器static Z7Compressor创建压缩器protected void执行压缩到目标文件protected voidtoStream(String fromPath, OutputStream toStream) 执行压缩到输出流Methods inherited from class com.imyeyu.compress.Compressor
of, of, requireFromPath, toFile, toFile, toStreamMethods inherited from class com.imyeyu.compress.AbstractRunner
awaitIfPaused, ensureRunning, fileCallback, finishProgress, handleFile, handleProgress, handleTransferred, initByteProgress, interrupt, nonClosing, nonClosing, normalizeEntryName, pause, progressCallback, resetProgress, self, setFileCallback, setProgressCallback, start, transfer, transfer
-
Constructor Details
-
Z7Compressor
public Z7Compressor()
-
-
Method Details
-
from
创建压缩器- Parameters:
fromPath- 源路径- Returns:
- 压缩器
-
from
创建压缩器- Parameters:
fromFile- 源文件- Returns:
- 压缩器
-
toStream
Description copied from class:Compressor执行压缩到输出流- Specified by:
toStreamin classCompressor<Z7Compressor>- Parameters:
fromPath- 源路径toStream- 目标输出流- Throws:
Exception- 压缩失败
-
toFile
Description copied from class:Compressor执行压缩到目标文件- Overrides:
toFilein classCompressor<Z7Compressor>- Parameters:
fromPath- 源路径toFile- 目标压缩文件- Throws:
Exception- 压缩失败
-