org.basex.util
Class Base64

java.lang.Object
  extended by org.basex.util.Base64

public final class Base64
extends java.lang.Object

This class provides functions for encoding and decoding Base64 strings.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Method Summary
static byte[] decode(byte[] token)
          Decodes the specified token.
static java.lang.String decode(java.lang.String token)
          Decodes the specified string.
static byte[] encode(byte[] token)
          Encodes the specified token.
static java.lang.String encode(java.lang.String token)
          Encodes the specified string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(java.lang.String token)
Encodes the specified string.

Parameters:
token - value to be encoded
Returns:
resulting token

encode

public static byte[] encode(byte[] token)
Encodes the specified token.

Parameters:
token - value to be encoded
Returns:
resulting token

decode

public static java.lang.String decode(java.lang.String token)
Decodes the specified string.

Parameters:
token - value to be decoded
Returns:
resulting token

decode

public static byte[] decode(byte[] token)
Decodes the specified token.

Parameters:
token - value to be decoded
Returns:
resulting token