4 Commits
Author SHA1 Message Date
timi bc0fd6e5db Merge pull request 'v0.1.0' (#11) from dev into master
Reviewed-on: #11
2026-10-01 10:51:23 +00:00
Timi 44f6897b84 v0.1.0
CI/CD / build-deploy (pull_request) Successful in 11s
2026-10-01 18:51:03 +08:00
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 98402f2255 v0.0.5
CI/CD / build-deploy (pull_request) Successful in 13s
2026-05-07 15:50:36 +08:00
4 changed files with 16 additions and 16 deletions
+5 -5
View File
@@ -6,10 +6,10 @@
<groupId>com.imyeyu.compress</groupId> <groupId>com.imyeyu.compress</groupId>
<artifactId>timi-compress</artifactId> <artifactId>timi-compress</artifactId>
<version>0.0.4</version> <version>0.1.0</version>
<properties> <properties>
<maven.test.skip>true</maven.test.skip> <java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source> <maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target> <maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -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.0.3</version> <version>0.1.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
@@ -106,12 +106,12 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>1.18.40</version> <version>1.18.46</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.10.2</version> <version>6.0.3</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@@ -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) {
TimiException.required(entryName, "not found entryName"); ActionException.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);
} }
TimiException.required(normalized, "not found normalized entryName"); ActionException.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.timi.TimiException; import com.imyeyu.java.bean.ActionException;
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) {
TimiException.required(fromPath, "not found fromPath"); ActionException.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) {
TimiException.required(fromFile, "not found fromFile"); ActionException.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() {
TimiException.required(fromPath, "not found source"); ActionException.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.timi.TimiException; import com.imyeyu.java.bean.ActionException;
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) {
TimiException.required(fromFile, "not found fromFile"); ActionException.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) {
TimiException.required(fromPath, "not found fromPath"); ActionException.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) {
TimiException.required(fromStream, "not found fromStream"); ActionException.required(fromStream, "not found fromStream");
this.fromStream = fromStream; this.fromStream = fromStream;
this.fromFile = null; this.fromFile = null;
return self(); return self();