rabbit.util
Class Base64

java.lang.Object
  extended by rabbit.util.Base64

public class Base64
extends Object

This class encodes/decodes stuff to/from the web.


Method Summary
static String decode(String base64string)
          uudecode(base64) the given string.
static String encode(String str)
          uuencode(base64) the given String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static String decode(String base64string)
uudecode(base64) the given string. useful for decoding basic Authentication

Parameters:
base64string - the String to decode.
Returns:
the decoded string.

encode

public static String encode(String str)
uuencode(base64) the given String. useful for encoding basic authentication.

Parameters:
str - the String to encode.
Returns:
the encoded string.