10 Commits
Author SHA1 Message Date
timi 022b4a77dc Merge pull request 'v0.0.5' (#10) from dev into master
Reviewed-on: #10
2026-05-07 07:56:08 +00:00
timi 2f2eddfcda Merge pull request 'v0.0.4' (#9) from dev into master
Reviewed-on: #9
2026-04-07 08:54:22 +00:00
timi 4cd3c14d9d Merge pull request 'v0.0.4' (#8) from dev into master
Reviewed-on: #8
2026-04-07 08:52:47 +00:00
timi 0cf2aba878 Merge pull request 'v0.0.4' (#7) from dev into master
Reviewed-on: #7
2026-04-07 08:45:18 +00:00
timi 279289fb22 Merge pull request 'v0.0.3' (#6) from dev into master
Reviewed-on: #6
2026-04-02 08:26:38 +00:00
timi 913b9b5328 Merge pull request 'v0.0.2' (#5) from dev into master
Reviewed-on: #5
2026-04-01 14:52:04 +00:00
timi 88b1fd6e02 Merge pull request 'v0.0.1' (#4) from dev into master
Reviewed-on: #4
2026-04-01 07:23:36 +00:00
timi 1f13cdd7bc Merge pull request 'v0.0.1' (#3) from dev into master
Reviewed-on: #3
2026-04-01 07:20:16 +00:00
timi 0b078278f0 Merge pull request 'v0.0.1' (#2) from dev into master
Reviewed-on: #2
2026-04-01 07:13:48 +00:00
timi c0b2ae11a7 Merge pull request 'v0.0.1' (#1) from dev into master
Reviewed-on: #1
2026-04-01 06:09:52 +00:00
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
<groupId>com.imyeyu.compress</groupId> <groupId>com.imyeyu.compress</groupId>
<artifactId>timi-compress</artifactId> <artifactId>timi-compress</artifactId>
<version>0.1.1</version> <version>0.0.5</version>
<properties> <properties>
<java.version>21</java.version> <java.version>21</java.version>
@@ -91,7 +91,7 @@
<dependency> <dependency>
<groupId>com.imyeyu.io</groupId> <groupId>com.imyeyu.io</groupId>
<artifactId>timi-io</artifactId> <artifactId>timi-io</artifactId>
<version>0.1.1</version> <version>0.0.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
@@ -1,7 +1,7 @@
package com.imyeyu.compress; package com.imyeyu.compress;
import com.imyeyu.java.bean.ActionException;
import com.imyeyu.java.bean.CallbackArg; import com.imyeyu.java.bean.CallbackArg;
import com.imyeyu.java.bean.timi.TimiException;
import com.imyeyu.utils.OS; import com.imyeyu.utils.OS;
import java.io.File; import java.io.File;
@@ -274,12 +274,12 @@ public abstract class AbstractRunner<T extends AbstractRunner<T>> implements OS.
* @return 规范化后的名称 * @return 规范化后的名称
*/ */
protected String normalizeEntryName(String entryName) { protected String normalizeEntryName(String entryName) {
ActionException.required(entryName, "not found entryName"); TimiException.required(entryName, "not found entryName");
String normalized = entryName.replace('\\', '/'); String normalized = entryName.replace('\\', '/');
while (normalized.startsWith("/")) { while (normalized.startsWith("/")) {
normalized = normalized.substring(1); normalized = normalized.substring(1);
} }
ActionException.required(normalized, "not found normalized entryName"); TimiException.required(normalized, "not found normalized entryName");
return normalized; return normalized;
} }
} }
@@ -1,7 +1,7 @@
package com.imyeyu.compress; package com.imyeyu.compress;
import com.imyeyu.io.IO; import com.imyeyu.io.IO;
import com.imyeyu.java.bean.ActionException; import com.imyeyu.java.bean.timi.TimiException;
import java.io.File; import java.io.File;
import java.io.OutputStream; import java.io.OutputStream;
@@ -25,7 +25,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
* @return 当前压缩器 * @return 当前压缩器
*/ */
protected T of(String fromPath) { protected T of(String fromPath) {
ActionException.required(fromPath, "not found fromPath"); TimiException.required(fromPath, "not found fromPath");
this.fromPath = fromPath; this.fromPath = fromPath;
return self(); return self();
} }
@@ -37,7 +37,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
* @return 当前压缩器 * @return 当前压缩器
*/ */
protected T of(File fromFile) { protected T of(File fromFile) {
ActionException.required(fromFile, "not found fromFile"); TimiException.required(fromFile, "not found fromFile");
return of(fromFile.getAbsolutePath()); return of(fromFile.getAbsolutePath());
} }
@@ -83,7 +83,7 @@ public abstract class Compressor<T extends Compressor<T>> extends AbstractRunner
* @return 源路径 * @return 源路径
*/ */
protected String requireFromPath() { protected String requireFromPath() {
ActionException.required(fromPath, "not found source"); TimiException.required(fromPath, "not found source");
return fromPath; return fromPath;
} }
@@ -1,7 +1,7 @@
package com.imyeyu.compress; package com.imyeyu.compress;
import com.imyeyu.io.IO; import com.imyeyu.io.IO;
import com.imyeyu.java.bean.ActionException; import com.imyeyu.java.bean.timi.TimiException;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;
@@ -28,7 +28,7 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @return 当前解压器 * @return 当前解压器
*/ */
protected T of(File fromFile) { protected T of(File fromFile) {
ActionException.required(fromFile, "not found fromFile"); TimiException.required(fromFile, "not found fromFile");
this.fromFile = fromFile; this.fromFile = fromFile;
this.fromStream = null; this.fromStream = null;
return self(); return self();
@@ -41,7 +41,7 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @return 当前解压器 * @return 当前解压器
*/ */
protected T of(String fromPath) { protected T of(String fromPath) {
ActionException.required(fromPath, "not found fromPath"); TimiException.required(fromPath, "not found fromPath");
return of(new File(fromPath)); return of(new File(fromPath));
} }
@@ -52,7 +52,7 @@ public abstract class Decompressor<T extends Decompressor<T>> extends AbstractRu
* @return 当前解压器 * @return 当前解压器
*/ */
public T of(InputStream fromStream) { public T of(InputStream fromStream) {
ActionException.required(fromStream, "not found fromStream"); TimiException.required(fromStream, "not found fromStream");
this.fromStream = fromStream; this.fromStream = fromStream;
this.fromFile = null; this.fromFile = null;
return self(); return self();