Class Base64

java.lang.Object
com.mailjet.client.Base64

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

    Constructors
    Constructor Description
    Base64()  
  • Method Summary

    Modifier and Type Method Description
    static byte[] decode​(java.lang.String s)
    Translates the specified Base64 string into a byte array.
    static java.lang.String encode​(byte[] buf)
    Translates the specified byte array into Base64 string.

    Methods inherited from class java.lang.Object

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

    • Base64

      public Base64()
  • Method Details

    • encode

      public static java.lang.String encode​(byte[] buf)
      Translates the specified byte array into Base64 string.
      Parameters:
      buf - the byte array (not null)
      Returns:
      the translated Base64 string (not null)
    • decode

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