org.apache.jetspeed.util
Class Base64

java.lang.Object
  extended byorg.apache.jetspeed.util.Base64

public class Base64
extends java.lang.Object

Simple Base64 string decoding function

Author:
Jason Borden This class was copied from the jakarta-james project. The only change made, besides comments, is the package name. This class orgininated in org.apache.james.util as version 1.3 which was committed by darrel on 2002/01/18 02:48:39 $Id: Base64.java,v 1.5 2004/02/23 03:23:42 jford Exp $ Committed on $Date: 2004/02/23 03:23:42 $ by: $Name: $

Constructor Summary
Base64()
           
 
Method Summary
static byte[] decodeAsByteArray(java.lang.String b64string)
           
static java.lang.String decodeAsString(java.lang.String b64string)
           
static java.lang.String encodeAsString(byte[] plaindata)
           
static java.lang.String encodeAsString(java.lang.String plaintext)
           
 
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

decodeAsString

public static java.lang.String decodeAsString(java.lang.String b64string)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

decodeAsByteArray

public static byte[] decodeAsByteArray(java.lang.String b64string)
                                throws java.lang.Exception
Throws:
java.lang.Exception

encodeAsString

public static java.lang.String encodeAsString(java.lang.String plaintext)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

encodeAsString

public static java.lang.String encodeAsString(byte[] plaindata)
                                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.