public final class

Base64

extends Object
java.lang.Object
   ↳ com.ning.http.util.Base64

Class Overview

Implements the "base64" binary encoding scheme as defined by RFC 2045.

Portions of code here are taken from Apache Pivot

Summary

Public Methods
static byte[] decode(String encoded)
Decodes the specified base64 string back into its raw data.
static String encode(byte[] bytes)
Encodes the specified data into a base64 string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static byte[] decode (String encoded)

Decodes the specified base64 string back into its raw data.

Parameters
encoded The base64 encoded string.

public static String encode (byte[] bytes)

Encodes the specified data into a base64 string.

Parameters
bytes The unencoded raw data.