com.ibm.commons.util.io.base64
Class Base64

java.lang.Object
  extended by com.ibm.commons.util.io.base64.Base64

public class Base64
extends java.lang.Object

Encodes and decodes to and from Base64 notation.


Nested Class Summary
static class Base64.InputStream
           
static class Base64.OutputStream
           
 
Constructor Summary
Base64()
           
 
Method Summary
static java.lang.String decode(java.lang.String base64str)
          Decode a base64 string to an ascii string.
static java.lang.String encode(java.lang.String str)
          Encode a string to base64.
 
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

decode

public static java.lang.String decode(java.lang.String base64str)
Decode a base64 string to an ascii string.

Parameters:
base64str - the string to decode
Returns:

encode

public static java.lang.String encode(java.lang.String str)
Encode a string to base64.

Parameters:
str - the string to encode
Returns: