Class Base64

java.lang.Object
com.mku.convert.Base64
All Implemented Interfaces:
IBase64

public class Base64 extends Object implements IBase64
Base64 encoder/decoder.
  • Constructor Details

    • Base64

      public Base64()
  • Method Details

    • decode

      public byte[] decode(String text)
      Decode text from Base64 string.
      Specified by:
      decode in interface IBase64
      Parameters:
      text - String to be decoded
      Returns:
      Byte array of decoded data.
    • encode

      public String encode(byte[] data)
      Encode byte array to a text string.
      Specified by:
      encode in interface IBase64
      Parameters:
      data - Byte array to be encoded.
      Returns:
      String of encoded data.