|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.security.Base64
public abstract class Base64
A static Base64 encoder/decoder as specified in RFC2045 Multipurpose Internet Mail Extensions (MIME).
| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
static byte[] |
decode(byte[] data)
Decodes Base64 data into octects. |
static byte[] |
decode(String string)
Decodes a Base64 string into octets. |
static String |
decode(String string,
String encoding)
Decodes a Base64 string into clear text. |
static String |
encode(byte[] data)
Encodes octects into Base64. |
static String |
encode(String string)
Encodes a string into Base64 by applying platform's default encoding. |
static String |
encode(String string,
String encoding)
Encodes a string into Base64 by applying the given character encoding. |
| 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 final String encode(String string)
string - a string to encode.
public static final String encode(String string,
String encoding)
string - a string to encode.encoding - the character encoding.
public static final String encode(byte[] data)
data - an array of octets.
public static final String decode(String string,
String encoding)
string - the string to decode.encoding - the character encoding.
public static final byte[] decode(String string)
string - the string to decode.
public static final byte[] decode(byte[] data)
data - data to decode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||