|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.util.Base64
public class Base64
Yet another Base64 implementation...
(because Sun does not provide an "official" one)
Does not support line-breaking. This needs to be
done by the application.
| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
static byte[] |
base64ToByteArray(char[] src)
Decodes base64. |
static byte[] |
base64ToByteArray(String src)
Decodes base64. |
static String |
byteArrayToBase64(byte[] src)
Encodes to base64. |
static char[] |
byteArrayToBase64Array(byte[] src)
Encodes to base64. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64()
| Method Detail |
|---|
public static byte[] base64ToByteArray(char[] src)
src - the source character array in base64
IllegalArgumentException - if src is not well-formattedpublic static byte[] base64ToByteArray(String src)
src - the source String in base64
public static char[] byteArrayToBase64Array(byte[] src)
src - the byte array
public static String byteArrayToBase64(byte[] src)
src - the byte array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||