Class Base64

  • All Implemented Interfaces:
    IBase64

    public class Base64
    extends java.lang.Object
    implements IBase64
    Base64 Proxy for Android.
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decode​(java.lang.String text)
      Decode a string.
      java.lang.String encode​(byte[] data)
      Encode a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • decode

        public byte[] decode​(java.lang.String text)
        Decode a string.
        Specified by:
        decode in interface IBase64
        Parameters:
        text - String to be converted.
        Returns:
        The bytes with the decoded data.
      • encode

        public java.lang.String encode​(byte[] data)
        Encode a string.
        Specified by:
        encode in interface IBase64
        Parameters:
        data - The byte array to be converted.
        Returns:
        The string with the text encoded