|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.util.Base64Utils
public class Base64Utils
Utility class for Base64 encoding. Froyo and newer versions of Android include
Base64 support. If the environment is determined to be Froyo or later, then this
class delegates to Base64
. If the version is older than
Froyo, then Robert Harder's public domain Base64 class is used.
Base64
Constructor Summary | |
---|---|
Base64Utils()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] input)
Base64 decodes the input. |
static byte[] |
decode(java.lang.String str)
Base64 decodes the input. |
static byte[] |
encode(byte[] input)
Base64 encodes the input. |
static java.lang.String |
encodeToString(byte[] input)
Base64 encodes the input. |
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[] encode(byte[] input)
Base64.encode(byte[], int)
.
Otherwise Base64.encodeBytesToBytes(byte[])
is used.
input
- the byte array to encode
public static java.lang.String encodeToString(byte[] input)
Base64.encodeToString(byte[], int)
.
Otherwise Base64.encodeBytes(byte[])
is used.
input
- the byte array to encode
public static byte[] decode(byte[] input)
Base64.decode(byte[], int)
.
Otherwise Base64.decode(byte[])
is used.
input
- the byte array to decode
public static byte[] decode(java.lang.String str)
Base64.decode(String, int)
.
Otherwise Base64.decode(String)
is used.
str
- the String the decode
|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |