abstract class Base64Utils
A simple utility class for Base64 encoding and decoding.
Adapts to Java 8's java.util.Base64 in a convenience fashion.
Author
Juergen Hoeller
Author
Gary Russell
Since
4.1
See Also
java.util.Base64
Base64Utils()
A simple utility class for Base64 encoding and decoding. Adapts to Java 8's java.util.Base64 in a convenience fashion. |
open static fun decode(src: ByteArray): ByteArray
Base64-decode the given byte array. |
|
open static fun decodeFromString(src: String): ByteArray
Base64-decode the given byte array from an UTF-8 String. |
|
open static fun decodeFromUrlSafeString(src: String): ByteArray
Base64-decode the given byte array from an UTF-8 String using the RFC 4648 "URL and Filename Safe Alphabet". |
|
open static fun decodeUrlSafe(src: ByteArray): ByteArray
Base64-decode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet". |
|
open static fun encode(src: ByteArray): ByteArray
Base64-encode the given byte array. |
|
open static fun encodeToString(src: ByteArray): String
Base64-encode the given byte array to a String. |
|
open static fun encodeToUrlSafeString(src: ByteArray): String
Base64-encode the given byte array to a String using the RFC 4648 "URL and Filename Safe Alphabet". |
|
open static fun encodeUrlSafe(src: ByteArray): ByteArray
Base64-encode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet". |