org.abstracthorizon.danube.http.util
Class Base64

java.lang.Object
  extended by org.abstracthorizon.danube.http.util.Base64

public class Base64
extends Object

This class encodes and decodes strings from/to Base64

Author:
Daniel Sendula

Field Summary
protected static int[] eightToSix
          Cached decoding int array
protected static char[] sixToEight
          Cached encoding char array
 
Constructor Summary
Base64()
           
 
Method Summary
static String decode(String s)
          This method decodes given string
static String encode(String s)
          This method encodes given string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sixToEight

protected static char[] sixToEight
Cached encoding char array


eightToSix

protected static int[] eightToSix
Cached decoding int array

Constructor Detail

Base64

public Base64()
Method Detail

encode

public static String encode(String s)
This method encodes given string

Parameters:
s - string to be encoded
Returns:
encoded string

decode

public static String decode(String s)
This method decodes given string

Parameters:
s - string to be decoded
Returns:
decoded string


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.