Class Base64


  • public class Base64
    extends Object
    This class support encoding an decoding of BASE64 coder.
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • encode

        public static String encode​(byte[] buffer)
        This method encodes a byte array into BASE64.
        Parameters:
        buffer - The text to encode.
        Returns:
        The encoded text.
      • decode

        public static byte[] decode​(String coded)
        Translates the specified BASE64 string into a byte array.
        Parameters:
        coded - The Base64 string (not null)
        Returns:
        The byte array (not null)