Package hec.util

Class Base64

java.lang.Object
hec.util.Base64

@Deprecated public class Base64 extends Object
Deprecated.
Class for base64 encoding/decoding
  • Constructor Details

    • Base64

      public Base64()
      Deprecated.
  • Method Details

    • encode

      @Deprecated public static String encode(String str) throws UnsupportedEncodingException
      Deprecated.
      Use Base64 instead
      Base64 encodes a string, which is interpreted according to the ISO-8859-1 character set
      Parameters:
      str - The string to encode
      Returns:
      The encoded string, generated with the ISO-8859-1 character set
      Throws:
      UnsupportedEncodingException
    • encode

      @Deprecated public static String encode(String str, String charset) throws UnsupportedEncodingException
      Deprecated.
      Use Base64 instead
      Base64 encodes a string, which is interpreted according to the specified character set
      Parameters:
      str - The string to encode
      charset - The character set to interpret the string with
      Returns:
      The encoded string, generated with the specified character set
      Throws:
      UnsupportedEncodingException
    • decode

      @Deprecated public static String decode(String str) throws UnsupportedEncodingException
      Deprecated.
      Use Base64 instead
      Base64 decodes a string, which is interpreted according to the ISO-8859-1 character set
      Parameters:
      str - The string to encode
      Returns:
      The decoded string, generated with the ISO-8859-1 character set
      Throws:
      UnsupportedEncodingException
    • decode

      @Deprecated public static String decode(String str, String charset) throws UnsupportedEncodingException
      Deprecated.
      Use Base64 instead
      Base64 decodes a string, which is interpreted according to the specified character set
      Parameters:
      str - The string to encode
      charset - The character set to interpret the string with
      Returns:
      The decoded string, generated with the specified character set
      Throws:
      UnsupportedEncodingException
    • encode

      @Deprecated public static byte[] encode(byte[] in, int offset, int len)
      Deprecated.
      Use Base64 instead
      Base64 encodes an array of bytes
      Parameters:
      in - The array of bytes to encode
      offset - The starting offset into the array to encode
      len - The number of bytes to encode
      Returns:
      The encoded bytes
    • encode

      @Deprecated public static byte[] encode(byte[] in)
      Deprecated.
      Use Base64 instead
      Base64 encodes an array of bytes
      Parameters:
      in - The array of bytes to encode
      Returns:
      The encoded bytes
    • decode

      @Deprecated public static byte[] decode(byte[] in, int offset, int len)
      Deprecated.
      Use Base64 instead
      Base64 decodes an array of bytes
      Parameters:
      in - The array of bytes to decode
      offset - The starting offset into the array to decode
      len - The number of bytes to decode
      Returns:
      The decoded bytes
    • decode

      @Deprecated public static byte[] decode(byte[] in)
      Deprecated.
      Base64 decodes an array of bytes
      Parameters:
      in - The array of bytes to decode
      Returns:
      The decoded bytes