com.antiaction.mayhem.core
Class Base64

java.lang.Object
  extended by com.antiaction.mayhem.core.Base64

public class Base64
extends java.lang.Object

Base64 de/encoder implemention based on the specifications in rfc2045.

Version:
1.00
Author:
Nicholas Clarke

Method Summary
static java.lang.String decode(java.lang.String inStr)
          Decodes a base64 encoded string.
static java.lang.String encode(java.lang.String inStr)
          Encodes a string with base64.
static void main(java.lang.String[] args)
          For debugging purposes only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static java.lang.String decode(java.lang.String inStr)
Decodes a base64 encoded string.

Parameters:
inStr - encoded string.
Returns:
decodes base64 string.

encode

public static java.lang.String encode(java.lang.String inStr)
Encodes a string with base64.

Parameters:
inStr - unencoded text string.
Returns:
encoded string.

main

public static void main(java.lang.String[] args)
For debugging purposes only.

Parameters:
args - unused arguments


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.