public class EncodingGroovyMethods extends Object
| Constructor and Description | 
|---|
EncodingGroovyMethods()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
decodeBase64(String value)
Decode the String from Base64 into a byte array. 
 | 
static Writable | 
encodeBase64(byte[] data)
Produce a Writable object which writes the Base64 encoding of the byte array. 
 | 
static Writable | 
encodeBase64(Byte[] data)
Produce a Writable object which writes the Base64 encoding of the byte array. 
 | 
static Writable | 
encodeBase64(byte[] data,
            boolean chunked)
Produce a Writable object which writes the Base64 encoding of the byte array. 
 | 
static Writable | 
encodeBase64(Byte[] data,
            boolean chunked)
Produce a Writable object which writes the Base64 encoding of the byte array. 
 | 
public static Writable encodeBase64(Byte[] data, boolean chunked)
RFC 4648.data - Byte array to be encodedchunked - whether or not the Base64 encoded data should be MIME chunkedpublic static Writable encodeBase64(Byte[] data)
RFC 4648.data - Byte array to be encodedpublic static Writable encodeBase64(byte[] data, boolean chunked)
RFC 4648.data - byte array to be encodedchunked - whether or not the Base64 encoded data should be MIME chunkedpublic static Writable encodeBase64(byte[] data)
RFC 4648.data - byte array to be encodedpublic static byte[] decodeBase64(String value)
value - the string to be decoded