feat: support BigInteger packer

This commit is contained in:
Wans
2025-08-25 19:25:54 +08:00
committed by ReaJason
parent ed50e93183
commit 9925d901f5
15 changed files with 145 additions and 8 deletions
@@ -0,0 +1,13 @@
package com.reajason.javaweb.packer;
import lombok.SneakyThrows;
import java.math.BigInteger;
public class BigIntegerPacker implements Packer {
@Override
@SneakyThrows
public String pack(ClassPackerConfig config) {
return new BigInteger(config.getClassBytes()).toString(36);
}
}
@@ -65,6 +65,11 @@ public enum Packers {
Jar(new DefaultJarPacker()),
/**
* BigInteger
*/
BigInteger(new BigIntegerPacker()),
/**
* BCEL
*/