v0.0.4
Some checks failed
CI/CD / build-deploy (pull_request) Failing after 10s

This commit is contained in:
Timi
2026-04-07 16:52:13 +08:00
parent 01c21c7aa0
commit 829c7f0184
15 changed files with 89 additions and 89 deletions

View File

@@ -27,7 +27,7 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @param fromFile 源压缩文件
* @return 当前解压器
*/
public T from(File fromFile) {
protected T of(File fromFile) {
TimiException.required(fromFile, "not found fromFile");
this.fromFile = fromFile;
this.fromStream = null;
@@ -40,9 +40,9 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @param fromPath 源压缩文件路径
* @return 当前解压器
*/
public T from(String fromPath) {
protected T of(String fromPath) {
TimiException.required(fromPath, "not found fromPath");
return from(new File(fromPath));
return of(new File(fromPath));
}
/**
@@ -51,7 +51,7 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @param fromStream 源压缩输入流
* @return 当前解压器
*/
public T from(InputStream fromStream) {
public T of(InputStream fromStream) {
TimiException.required(fromStream, "not found fromStream");
this.fromStream = fromStream;
this.fromFile = null;