|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.util.Base64Utils
public abstract class Base64Utils
A simple utility class for Base64 encoding and decoding that delegates to Android's
Base64
class.
Constructor Summary | |
---|---|
Base64Utils()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] src)
Base64-decode the given byte array. |
static byte[] |
decode(java.lang.String src)
Deprecated. in favor of decodeFromString(String) |
static byte[] |
decodeFromString(java.lang.String src)
Base64-decode the given byte array from an UTF-8 String. |
static byte[] |
encode(byte[] src)
Base64-encode the given byte array. |
static java.lang.String |
encodeToString(byte[] src)
Base64-encode the given byte array to a String. |
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[] src)
src
- the original byte array (may be null
)
null
if the input was null
)public static java.lang.String encodeToString(byte[] src)
src
- the original byte array (may be null
)
null
if the input was null
)public static byte[] decode(byte[] src)
src
- the encoded byte array (may be null
)
null
if the input was null
)@Deprecated public static byte[] decode(java.lang.String src)
decodeFromString(String)
src
- the encoded UTF-8 String (may be null
)
null
if the input was null
)public static byte[] decodeFromString(java.lang.String src)
src
- the encoded UTF-8 String (may be null
)
null
if the input was null
)
|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |