This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user