|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ikokoon.toolkit.Base64
public class Base64
Utility to base64 encode and decode a string.
| Method Summary | |
|---|---|
static byte[] |
decode(java.lang.String s)
A Base64 decoder. |
static java.lang.String |
encode(byte[] src)
base-64 encode a byte array |
static java.lang.String |
encode(byte[] src,
int start,
int length)
base-64 encode a byte array |
static java.lang.String |
encode(java.lang.String s)
base-64 encode a string |
static void |
main(java.lang.String[] args)
Test the decoder and encoder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String encode(java.lang.String s)
s - The ascii string to encode
public static java.lang.String encode(byte[] src)
src - The byte array to encode
public static java.lang.String encode(byte[] src,
int start,
int length)
src - The byte array to encodestart - The starting indexlen - The number of bytes
public static byte[] decode(java.lang.String s)
s - a Base64 encoded string
public static void main(java.lang.String[] args)
Base64 [string].
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||