public class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decode(java.lang.String source)
Returns the plaintext equivalent of a base 64-encoded string.
|
static java.lang.String |
encode(java.lang.String source)
Returns the base 64 encoded equivalent of a supplied string.
|
public static java.lang.String encode(java.lang.String source)
source
- the string to encodepublic static java.lang.String decode(java.lang.String source)
source
- a base 64 string (which must have a multiple of 4 characters)