Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.io.impl
Class Base64  view Base64 download Base64.java

java.lang.Object
  extended bycom.sun.syndication.io.impl.Base64

public class Base64
extends java.lang.Object

Encodes/decodes byte arrays and Strings into/from a base 64 String.


Field Summary
private static byte[] ALPHASET
           
private static int[] CODES
           
private static int I2O6
           
private static int I4O4
           
private static int I6O2
           
private static int O2I6
           
private static int O4I4
           
private static int O6I2
           
 
Constructor Summary
Base64()
           
 
Method Summary
static byte[] decode(byte[] eData)
          Dencodes a com.sun.syndication.io.impl.Base64 byte array.
static java.lang.String decode(java.lang.String s)
          Decodes a base 64 String into a String.
static byte[] encode(byte[] dData)
          Encodes a byte array into a base 64 byte array.
static java.lang.String encode(java.lang.String s)
          Encodes a String into a base 64 String.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHASET

private static final byte[] ALPHASET

I6O2

private static final int I6O2
See Also:
Constant Field Values

O6I2

private static final int O6I2
See Also:
Constant Field Values

I4O4

private static final int I4O4
See Also:
Constant Field Values

O4I4

private static final int O4I4
See Also:
Constant Field Values

I2O6

private static final int I2O6
See Also:
Constant Field Values

O2I6

private static final int O2I6
See Also:
Constant Field Values

CODES

private static final int[] CODES
Constructor Detail

Base64

public Base64()
Method Detail

encode

public static java.lang.String encode(java.lang.String s)
Encodes a String into a base 64 String. The resulting encoding is chunked at 76 bytes.


decode

public static java.lang.String decode(java.lang.String s)
                               throws java.lang.IllegalArgumentException
Decodes a base 64 String into a String.


encode

public static byte[] encode(byte[] dData)
Encodes a byte array into a base 64 byte array.


decode

public static byte[] decode(byte[] eData)
Dencodes a com.sun.syndication.io.impl.Base64 byte array.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception