|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.druid.util.Base64
public class Base64
Static methods for translating Base64 encoded strings to byte arrays and vice-versa.
Preferences| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
static byte[] |
altBase64ToByteArray(String s)
Translates the specified "alternate representation" Base64 string into a byte array. |
static byte[] |
base64ToByteArray(String s)
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array. |
static String |
byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation" Base64 string. |
static String |
byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64()
| Method Detail |
|---|
public static String byteArrayToBase64(byte[] a)
public static String byteArrayToAltBase64(byte[] a)
public static byte[] base64ToByteArray(String s)
public static byte[] altBase64ToByteArray(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||