Class Base64

java.lang.Object
com.charliemouse.cambozola.shared.Base64

public class Base64 extends Object
  • Constructor Details

    • Base64

      public Base64()
  • Method Details

    • encode

      public static 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 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