Class Base45.Encoder

  • Enclosing class:
    Base45

    public static class Base45.Encoder
    extends Object
    A Base45 encoder.
    • Field Detail

      • ENCODER

        public static final Base45.Encoder ENCODER
        Static encoder instance.
    • Method Detail

      • encode

        public byte[] encode​(byte[] src)
        Encodes the supplied bytes into its Base45 encoding.
        Parameters:
        src - the bytes to encode
        Returns:
        an allocated byte array holding the Base45 encoding
      • encodeToString

        public String encodeToString​(byte[] src)
        Encodes the supplied bytes into its corresponding Base45 string.
        Parameters:
        src - the bytes to encode
        Returns:
        a Base45 string