- All Implemented Interfaces:
IBase64
Base64 encoder/decoder.
-
Constructor Summary
Constructors
-
Method Summary
byte[]
Decode text from Base64 string.
Encode byte array to a text string.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
decode
public byte[] decode(String text)
Decode text from Base64 string.
- Specified by:
decode
in interface IBase64
- Parameters:
text
- String to be decoded
- Returns:
- Byte array of decoded data.
-
encode
public String encode(byte[] data)
Encode byte array to a text string.
- Specified by:
encode
in interface IBase64
- Parameters:
data
- Byte array to be encoded.
- Returns:
- String of encoded data.