|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.server.Base64Utils
public class Base64Utils
A utility to decode and encode byte arrays as Strings, using only "safe" characters.
Constructor Summary | |
---|---|
Base64Utils()
|
Method Summary | |
---|---|
static byte[] |
fromBase64(java.lang.String data)
Decode a base64 string into a byte array. |
static long |
longFromBase64(java.lang.String value)
Decode a base64 string into a long value. |
static java.lang.String |
toBase64(byte[] data)
Converts a byte array into a base 64 encoded string. |
static java.lang.String |
toBase64(long value)
Return a string containing a base-64 encoded version of the given long value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Utils()
Method Detail |
---|
public static byte[] fromBase64(java.lang.String data)
data
- the encoded data.
fromBase64(String)
public static long longFromBase64(java.lang.String value)
public static java.lang.String toBase64(byte[] data)
data
- a byte array, which may be null or empty
public static java.lang.String toBase64(long value)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |