|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.Base64
public class Base64
Base64 encoding/decoding utilities
Field Summary | |
---|---|
private static Base64 |
_theInstance
|
protected static java.util.Hashtable |
charLookup
Description of the Field |
static char[] |
charset
Description of the Field |
static char |
paddingChar
Description of the Field |
Constructor Summary | |
---|---|
private |
Base64()
|
Method Summary | |
---|---|
static void |
decode(java.io.Reader in,
java.io.OutputStream out)
Description of the Method |
static byte[] |
decode(java.lang.String base64)
Description of the Method |
static java.lang.String |
encode(byte[] data)
Description of the Method |
static java.lang.String |
encode(byte[] data,
int start,
int length)
Description of the Method |
static void |
encode(java.io.InputStream in,
java.io.Writer out)
Description of the Method |
static Base64 |
getInstance()
|
static void |
main(java.lang.String[] args)
If args.length > 0 then encode binary on stdin to base64 on stdout, else decode base64 on stdin to binary on stdout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Base64 _theInstance
public static final char[] charset
public static final char paddingChar
protected static java.util.Hashtable charLookup
Constructor Detail |
---|
private Base64()
Method Detail |
---|
public static Base64 getInstance()
public static void decode(java.io.Reader in, java.io.OutputStream out) throws java.lang.Exception
in
- Description of the Parameterout
- Description of the Parameter
java.lang.Exception
- Description of the Exceptionpublic static byte[] decode(java.lang.String base64) throws java.lang.Exception
base64
- Description of the Parameter
java.lang.Exception
- Description of the Exceptionpublic static void encode(java.io.InputStream in, java.io.Writer out) throws java.io.IOException
in
- Description of the Parameterout
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static java.lang.String encode(byte[] data)
data
- Description of the Parameter
public static java.lang.String encode(byte[] data, int start, int length) throws java.lang.ArrayIndexOutOfBoundsException
data
- Description of the Parameterstart
- Description of the Parameterlength
- Description of the Parameter
java.lang.ArrayIndexOutOfBoundsException
- Description of the Exceptionpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line arguments
java.lang.Exception
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |