org.ofbiz.base.util
Class Base64

java.lang.Object
  extended by org.ofbiz.base.util.Base64

public class Base64
extends java.lang.Object

Base64 implements Base64 encoding and Base 64 decoding.


Constructor Summary
Base64()
           
 
Method Summary
static byte[] base64Decode(byte[] data)
          This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
static java.lang.String base64Decode(java.lang.String str)
          This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).
static byte[] base64Encode(byte[] data)
          This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
static java.lang.String base64Encode(java.lang.String str)
          This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

base64Decode

public static final byte[] base64Decode(byte[] data)
This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
data - the base64-encoded data.
Returns:
the decoded data.

base64Decode

public static final java.lang.String base64Decode(java.lang.String str)
This method decodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
str - the base64-encoded string.
Returns:
the decoded str.

base64Encode

public static final byte[] base64Encode(byte[] data)
This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
data - the data
Returns:
the base64-encoded data

base64Encode

public static final java.lang.String base64Encode(java.lang.String str)
This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters:
str - the string
Returns:
the base64-encoded str