|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.EncodingGroovyMethods
public class EncodingGroovyMethods extends Object
This class defines all the encoding/decoding groovy methods which enhance the normal JDK classes when inside the Groovy environment. Static methods are used with the first parameter the destination class.
Method Summary | |
---|---|
static byte[]
|
decodeBase64(String value)
Decode the String from Base64 into a byte array. |
static byte[]
|
decodeHex(String value)
Decodes a hex string to a 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)
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)
Produce a Writable object which writes the Base64 encoding of the byte array. |
static Writable
|
encodeHex(Byte[] data)
Produces a Writable that writes the hex encoding of the Byte[]. |
static Writable
|
encodeHex(byte[] data)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public static byte[] decodeBase64(String value)
value
- the string to be decoded
public static byte[] decodeHex(String value)
value
- string to be decoded
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 chunked
public static Writable encodeBase64(Byte[] data)
RFC 4648
.
data
- Byte array to be encoded
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 chunked
public static Writable encodeBase64(byte[] data)
RFC 4648
.
data
- byte array to be encoded
public static Writable encodeHex(Byte[] data)
data
- byte array to be encoded
public static Writable encodeHex(byte[] data)
Copyright © 2003-2013 The Codehaus. All rights reserved.