@@ -1,7 +1,7 @@
|
||||
package com.imyeyu.compress;
|
||||
|
||||
import com.imyeyu.io.IO;
|
||||
import com.imyeyu.java.bean.timi.TimiException;
|
||||
import com.imyeyu.java.bean.ActionException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.OutputStream;
|
||||
@@ -25,7 +25,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
|
||||
* @return 当前压缩器
|
||||
*/
|
||||
protected T of(String fromPath) {
|
||||
TimiException.required(fromPath, "not found fromPath");
|
||||
ActionException.required(fromPath, "not found fromPath");
|
||||
this.fromPath = fromPath;
|
||||
return self();
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
|
||||
* @return 当前压缩器
|
||||
*/
|
||||
protected T of(File fromFile) {
|
||||
TimiException.required(fromFile, "not found fromFile");
|
||||
ActionException.required(fromFile, "not found fromFile");
|
||||
return of(fromFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
|
||||
* @return 源路径
|
||||
*/
|
||||
protected String requireFromPath() {
|
||||
TimiException.required(fromPath, "not found source");
|
||||
ActionException.required(fromPath, "not found source");
|
||||
return fromPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user