Class Base64


  • public class Base64
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(byte[] data)
      Returns base64 representation of specified byte array.
      static java.lang.String encode​(byte[] data, int off, int len)
      Returns base64 representation of specified byte array.
      • 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

      • encode

        public static java.lang.String encode​(byte[] data)
        Returns base64 representation of specified byte array.
        Parameters:
        data - The data to be encoded
        Returns:
        The base64 encoded data
      • encode

        public static java.lang.String encode​(byte[] data,
                                              int off,
                                              int len)
        Returns base64 representation of specified byte array.
        Parameters:
        data - The data to be encoded
        off - The offset within the data at which to start encoding
        len - The length of the data to encode
        Returns:
        The base64 encoded data