org.jmol.util
Class Base64

java.lang.Object
  extended by org.jmol.util.Base64

public class Base64
extends Object


Field Summary
private static String base64
           
private static int[] decode64
           
 
Constructor Summary
Base64()
           
 
Method Summary
static byte[] decodeBase64(String strBase64)
           
static StringBuffer getBase64(byte[] bytes)
           
static StringBuffer getBase64(StringBuffer str)
           
static byte[] getBytes64(byte[] bytes)
           
private static byte[] toBytes(StringBuffer sb)
           
static void write(byte[] bytes, OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base64

private static String base64

decode64

private static int[] decode64
Constructor Detail

Base64

public Base64()
Method Detail

write

public static void write(byte[] bytes,
                         OutputStream os)
                  throws IOException
Throws:
IOException

getBytes64

public static byte[] getBytes64(byte[] bytes)

getBase64

public static StringBuffer getBase64(StringBuffer str)

getBase64

public static StringBuffer getBase64(byte[] bytes)

decodeBase64

public static byte[] decodeBase64(String strBase64)

toBytes

private static byte[] toBytes(StringBuffer sb)