This commit is contained in:
@@ -26,8 +26,8 @@ public class GZipCompressor extends Compressor<GZipCompressor> {
|
||||
* @param fromPath 源路径
|
||||
* @return 压缩器
|
||||
*/
|
||||
public static GZipCompressor of(String fromPath) {
|
||||
return new GZipCompressor().from(fromPath);
|
||||
public static GZipCompressor from(String fromPath) {
|
||||
return new GZipCompressor().of(fromPath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,8 +36,8 @@ public class GZipCompressor extends Compressor<GZipCompressor> {
|
||||
* @param fromFile 源文件
|
||||
* @return 压缩器
|
||||
*/
|
||||
public static GZipCompressor of(File fromFile) {
|
||||
return new GZipCompressor().from(fromFile);
|
||||
public static GZipCompressor from(File fromFile) {
|
||||
return new GZipCompressor().of(fromFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user