Interface Base64Codec


public interface Base64Codec
A codec for encoding and decoding objects using the Base64 encoding scheme.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Object
    Returns an object decoded from a Base64-encoded representation.
    static String
    Returns a Base64-encoded representation of an object.
  • Method Details

    • encode

      static String encode(Object obj)
      Returns a Base64-encoded representation of an object.
      Parameters:
      obj - an object.
      Returns:
      a Base64-encoded representation of an object
    • decode

      static Object decode(String str)
      Returns an object decoded from a Base64-encoded representation.
      Parameters:
      str - a Base-64 encoded representation of an object.
      Returns:
      an object decoded from a Base64-encoded representation