org.qtunes.core.util
Class Base64

java.lang.Object
  extended by org.qtunes.core.util.Base64

public class Base64
extends java.lang.Object


Method Summary
static byte[] decode(java.lang.CharSequence in)
          Decode the Base64 String to bytes
static java.lang.String encode(byte[] in)
           
static java.lang.String encode(byte[] in, boolean addequals)
          Encode the bytes as a Base64 String
static java.lang.String toPrintableString(byte[] in)
          Return a hex String of the specified byte array
static java.lang.String toPrintableString(java.lang.CharSequence in)
          Return a printable version of the specified String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(byte[] in)

encode

public static java.lang.String encode(byte[] in,
                                      boolean addequals)
Encode the bytes as a Base64 String

Parameters:
addequals - whether to add the "=" at the end or not

decode

public static byte[] decode(java.lang.CharSequence in)
Decode the Base64 String to bytes


toPrintableString

public static final java.lang.String toPrintableString(java.lang.CharSequence in)
Return a printable version of the specified String


toPrintableString

public static final java.lang.String toPrintableString(byte[] in)
Return a hex String of the specified byte array