Class Base62Encoder

java.lang.Object
org.miaixz.bus.core.codec.binary.encoder.Base62Encoder
All Implemented Interfaces:
Encoder<byte[],byte[]>

public class Base62Encoder extends Object implements Encoder<byte[],byte[]>
Base62编码器
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • GMP

      public static final byte[] GMP
      GMP风格
    • INVERTED

      public static final byte[] INVERTED
      反转风格,即将GMP风格中的大小写做转换
    • GMP_ENCODER

      public static Base62Encoder GMP_ENCODER
      GMP风格编码器
    • INVERTED_ENCODER

      public static Base62Encoder INVERTED_ENCODER
      反转风格,即将GMP风格中的大小写做转换编码器
  • Constructor Details

    • Base62Encoder

      public Base62Encoder(byte[] alphabet)
      构造
      Parameters:
      alphabet - 字符表
  • Method Details

    • encode

      public byte[] encode(byte[] data)
      Description copied from interface: Encoder
      执行编码
      Specified by:
      encode in interface Encoder<byte[],byte[]>
      Parameters:
      data - 被编码的数据
      Returns:
      编码后的数据