Package dev.costas.javahelpers
Class Base64Util
java.lang.Object
dev.costas.javahelpers.Base64Util
Util for base64 handling.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Base64Util
public Base64Util()
-
-
Method Details
-
encode
Encodes a string to Base64.- Parameters:
text- The string to encode.- Returns:
- The encoded string.
- Throws:
IllegalArgumentException- iftextis nullNullPointerException
-
decode
Decodes a Base64 string.- Parameters:
text- The string to decode.- Returns:
- The decoded string.
- Throws:
IllegalArgumentException- iftextis null
-