java.lang.Object | |
↳ | com.google.gwt.user.server.Base64Utils |
A utility to decode and encode byte arrays as Strings, using only "safe" characters.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decode a base64 string into a byte array.
| |||||||||||
Decode a base64 string into a long value.
| |||||||||||
Return a string containing a base-64 encoded version of the given long
value.
| |||||||||||
Converts a byte array into a base 64 encoded string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Decode a base64 string into a byte array.
data | the encoded data. |
---|
Return a string containing a base-64 encoded version of the given long value. Leading groups of all zero bits are omitted.
Converts a byte array into a base 64 encoded string. Null is encoded as null, and an empty array is encoded as an empty string. Otherwise, the byte data is read 3 bytes at a time, with bytes off the end of the array padded with zeros. Each 24-bit chunk is encoded as 4 characters from the sequence [A-Za-z0-9$_]. If one of the source positions consists entirely of padding zeros, an '=' character is used instead.
data | a byte array, which may be null or empty |
---|