nu.studer.gradle.util
Class Base64

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

public final class Base64
extends java.lang.Object

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

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