Package hec.util
Class Base64
java.lang.Object
hec.util.Base64
Deprecated.
Class for base64 encoding/decoding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]decode(byte[] in) Deprecated.static byte[]decode(byte[] in, int offset, int len) Deprecated.static StringDeprecated.UseBase64insteadstatic StringDeprecated.UseBase64insteadstatic byte[]encode(byte[] in) Deprecated.UseBase64insteadstatic byte[]encode(byte[] in, int offset, int len) Deprecated.UseBase64insteadstatic StringDeprecated.UseBase64insteadstatic StringDeprecated.UseBase64instead
-
Constructor Details
-
Base64
public Base64()Deprecated.
-
-
Method Details
-
encode
Deprecated.UseBase64insteadBase64 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.UseBase64insteadBase64 encodes a string, which is interpreted according to the specified character set- Parameters:
str- The string to encodecharset- The character set to interpret the string with- Returns:
- The encoded string, generated with the specified character set
- Throws:
UnsupportedEncodingException
-
decode
Deprecated.UseBase64insteadBase64 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.UseBase64insteadBase64 decodes a string, which is interpreted according to the specified character set- Parameters:
str- The string to encodecharset- The character set to interpret the string with- Returns:
- The decoded string, generated with the specified character set
- Throws:
UnsupportedEncodingException
-
encode
Deprecated.UseBase64insteadBase64 encodes an array of bytes- Parameters:
in- The array of bytes to encodeoffset- The starting offset into the array to encodelen- The number of bytes to encode- Returns:
- The encoded bytes
-
encode
Deprecated.UseBase64insteadBase64 encodes an array of bytes- Parameters:
in- The array of bytes to encode- Returns:
- The encoded bytes
-
decode
Deprecated.UseBase64insteadBase64 decodes an array of bytes- Parameters:
in- The array of bytes to decodeoffset- The starting offset into the array to decodelen- The number of bytes to decode- Returns:
- The decoded bytes
-
decode
Deprecated.Base64 decodes an array of bytes- Parameters:
in- The array of bytes to decode- Returns:
- The decoded bytes
-
Base64instead