public class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] inBytes)
Decode a BASE-64 encoded sequence bytes.
|
static java.lang.String |
decode(java.lang.String inStr)
Use this method to decode a Base64 encoded string to the orginal String.
|
static byte[] |
encode(byte[] inBytes)
returns an array of base64-encoded characters to represent the passed data array.
|
static java.lang.String |
encode(java.lang.String inStr)
Use this method to convert a string to Base64-encoded string.
|
static void |
main(java.lang.String[] args)
Test Driver .
|
static java.lang.String |
utfDecode(java.lang.String inStr)
Use this method to decode a UTF8Base64 encoded string to the orginal String.
|
static java.lang.String |
utfEncode(java.lang.String inStr)
Use this method to convert a UTF-8string to Base64-encoded string.
|
public static java.lang.String encode(java.lang.String inStr)
inStr
- String to be Base64 encoded.public static java.lang.String utfEncode(java.lang.String inStr)
inStr
- String to be Base64 encoded.public static java.lang.String decode(java.lang.String inStr)
inStr
- Base64 encoded string.public static java.lang.String utfDecode(java.lang.String inStr)
inStr
- Base64 encoded string.public static byte[] encode(byte[] inBytes)
inBytes
- the array of bytes to encodepublic static byte[] decode(byte[] inBytes)
inBytes
- A sequence of Base 64 encoded bytes.public static void main(java.lang.String[] args)