@@ -24,7 +24,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
|
||||
* @param fromPath 源路径
|
||||
* @return 当前压缩器
|
||||
*/
|
||||
public T from(String fromPath) {
|
||||
protected T of(String fromPath) {
|
||||
TimiException.required(fromPath, "not found fromPath");
|
||||
this.fromPath = fromPath;
|
||||
return self();
|
||||
@@ -36,9 +36,9 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
|
||||
* @param fromFile 源文件
|
||||
* @return 当前压缩器
|
||||
*/
|
||||
public T from(File fromFile) {
|
||||
protected T of(File fromFile) {
|
||||
TimiException.required(fromFile, "not found fromFile");
|
||||
return from(fromFile.getAbsolutePath());
|
||||
return of(fromFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user