java.lang.Object
org.minidns.util.Base64
Minimal Base64 encoder utility class. Provides basic Base64 encoding functionality using standard Base64 alphabet with padding.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic StringencodeToString(byte[] bytes) Encodes the given byte array to a Base64 string.
Field Details
ALPHABET
PADDING
Padding appended to reach a whole quantum.- See Also:
Constructor Details
Base64
private Base64()Do not allow to instantiate Base64
Method Details
encodeToString
Encodes the given byte array to a Base64 string.- Parameters:
bytes- the byte array to encode- Returns:
- the Base64 encoded string