Groovy Documentation

nu.studer.gradle.util
[Java] Class Base64

java.lang.Object
  nu.studer.gradle.util.Base64

public final class Base64

Utilities related to Base64 encoding.


Method Summary
static byte[] decodeBase64(java.lang.String string)

Decodes the given Base64 string to bytes.

static java.lang.String encodeBase64(byte[] bytes)

Encodes the given bytes to a Base64 string.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

decodeBase64

public static byte[] decodeBase64(java.lang.String string)
Decodes the given Base64 string to bytes.
Parameters:
string - the Base64 string to decode
Returns:
the resulting bytes


encodeBase64

public static java.lang.String encodeBase64(byte[] bytes)
Encodes the given bytes to a Base64 string.
Parameters:
bytes - the bytes to encode
Returns:
the resulting Base64 string


 

Groovy Documentation