|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectthinkAlike.Base64
public class Base64
Provides methods for base64 encoding/decoding.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(java.lang.String b64Str)
Decodes a base64 string into a byte array (not tested). |
static java.lang.String |
encode(byte[] buff)
Encodes a byte array into base64. |
static java.lang.String |
encode(java.lang.String str)
Encodes the string in base64. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static java.lang.String encode(java.lang.String str)
str
- A string to be encoded.
public static java.lang.String encode(byte[] buff)
buff
- A byte array.
public static byte[] decode(java.lang.String b64Str)
b64Str
- A base64 string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |