com.caucho.util
Class Base64

java.lang.Object
  extended by com.caucho.util.Base64

public class Base64
extends java.lang.Object

Base64 decoding.


Constructor Summary
Base64()
           
 
Method Summary
static int decode(int d)
           
static void decode(java.io.Reader r, java.io.OutputStream os)
           
static java.lang.String decode(java.lang.String value)
           
static void decodeIgnoreWhitespace(java.io.Reader r, java.io.OutputStream os)
          XXX: decode() vs decodeIgnoreWhitespace(), check RFC
static byte[] decodeToByteArray(java.lang.String value)
           
static java.lang.String encode(byte[] buffer)
           
static void encode(CharBuffer cb, byte[] buffer)
           
static void encode(CharBuffer cb, byte[] buffer, int offset, int length)
           
static void encode(CharBuffer cb, long data)
           
static char encode(long d)
           
static java.lang.String encode(java.lang.String value)
           
static void encode(java.lang.StringBuilder cb, byte[] buffer, int offset, int length)
           
static void encode(java.lang.StringBuilder sb, long data)
           
static void encode(java.io.Writer w, java.io.InputStream i)
           
static void encode24(CharBuffer cb, int data)
           
static java.lang.String encodeFromByteArray(byte[] value)
           
static java.lang.String encodeFromByteArray(byte[] value, int offset, int length)
           
static void oldEncode(CharBuffer cb, byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

encode

public static void encode(CharBuffer cb,
                          long data)

encode

public static void encode(java.lang.StringBuilder sb,
                          long data)

encode24

public static void encode24(CharBuffer cb,
                            int data)

encode

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

encode

public static void encode(CharBuffer cb,
                          byte[] buffer)

encode

public static void encode(CharBuffer cb,
                          byte[] buffer,
                          int offset,
                          int length)

encode

public static void encode(java.lang.StringBuilder cb,
                          byte[] buffer,
                          int offset,
                          int length)

oldEncode

public static void oldEncode(CharBuffer cb,
                             byte[] buffer,
                             int offset,
                             int length)

encode

public static char encode(long d)

decode

public static int decode(int d)

encode

public static java.lang.String encode(java.lang.String value)

encodeFromByteArray

public static java.lang.String encodeFromByteArray(byte[] value)

encodeFromByteArray

public static java.lang.String encodeFromByteArray(byte[] value,
                                                   int offset,
                                                   int length)

encode

public static void encode(java.io.Writer w,
                          java.io.InputStream i)
                   throws java.io.IOException
Throws:
java.io.IOException

decode

public static java.lang.String decode(java.lang.String value)

decodeToByteArray

public static byte[] decodeToByteArray(java.lang.String value)

decode

public static void decode(java.io.Reader r,
                          java.io.OutputStream os)
                   throws java.io.IOException
Throws:
java.io.IOException

decodeIgnoreWhitespace

public static void decodeIgnoreWhitespace(java.io.Reader r,
                                          java.io.OutputStream os)
                                   throws java.io.IOException
XXX: decode() vs decodeIgnoreWhitespace(), check RFC

Throws:
java.io.IOException