|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.encoder.Base64
public class Base64
Cross browser Base64 encoder / decoder. This class consider a "string" where each character represents an 8-bit byte. If you pass a string containing characters that can't be represented in 8 bits, it will probably break.
| Method Summary | |
|---|---|
static String |
decode(String input)
Decode the given base64 input. |
static String |
encode(String input)
Encode the given input into a base64 output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encode(String input)
the first one is to escape the whole string and then encode it;
the second one is to convert the UTF-16 DOMString to an UTF-8 array of characters and then encode it.
input -
public static String decode(String input)
input -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||