|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.util.Base64
Utility class providing static methods for encoding and decoding data using the Base64 algorithm specified in Internet Standard RFC2045.
Field Summary | |
private static byte[] |
Base64DecMap
|
private static byte[] |
Base64EncMap
|
Constructor Summary | |
Base64()
|
Method Summary | |
static byte[] |
decode(byte[] encoded)
Decode a Base64-encoded byte array containing single-byte characters from the Base64 alphabet. |
static byte[] |
decode(byte[] encoded,
int offset,
int len)
Decode a subset of a Base64-encoded byte array containing single-byte characters from the Base64 alphabet. |
static String |
decode(String base64str)
Decode a Base64-encoded string. |
static byte[] |
encode(byte[] bytes)
Base64-encode an array of bytes. |
static String |
encode(String str)
Base64-encode a string. |
private static byte[] |
fromBytes(byte[] encoded,
int offset,
int len)
|
private static byte[] |
toBytes(byte[] data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static byte[] Base64EncMap
private static byte[] Base64DecMap
Constructor Detail |
public Base64()
Method Detail |
public static final String decode(String base64str)
base64str
- The Base64-encoded string.
public static final byte[] decode(byte[] encoded)
encoded
- The Base64-encoded array of single-byte characters.
public static final byte[] decode(byte[] encoded, int offset, int len)
encoded
- The Base64-encoded array of single-byte characters.offset
- The index of the first character to be decoded.len
- The number of characters to be decoded.
public static final byte[] encode(byte[] bytes)
bytes
- The array of bytes to be encoded.
public static final String encode(String str)
str
- The string to be encoded.
private static final byte[] fromBytes(byte[] encoded, int offset, int len)
private static final byte[] toBytes(byte[] data)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |