|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.util.encoding.Base64
This Base64 is a utility class for encoding and decoding
using the Base64 encoding. Additionally, it contains other handy
methods.
The Base64 encoding is designed to represent arbitrary sequences of octets in a form that need to be humanly readable. The encoding and decoding algorithms are simple, but the encoded data are consitently only about 33% larger than the unencoded data.
For more complete information about the Base64 encoding, please read MIME (Multipurpose Internet Mail Extensions) Part One (Section 5.2).
| Constructor Summary | |
Base64()
|
|
| Method Summary | |
static byte[] |
decode(byte[] bytes)
Decodes the specified Base64 encoded bytes. |
static String |
decode(String string)
Decodes the specified Base64 encoded string. |
static byte[] |
encode(byte[] bytes)
Encodes the specified bytes using the Base64
encoding. |
static String |
encode(String string)
Encodes the specified string using the Base64
encoding. |
static boolean |
encoded(byte[] bytes)
Checks to see if the specified bytes is Base64 encoded or
not. |
static boolean |
encoded(String string)
Checks to see if the specified string is Base64 encoded
or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Base64()
| Method Detail |
public static byte[] decode(byte[] bytes)
Decodes the specified Base64 encoded bytes.
bytes - the Base64 encoded bytes to be decoded.
encode(byte[])public static String decode(String string)
Decodes the specified Base64 encoded string.
string - the Base64 encoded string to be decoded.
decode(byte[]),
encode(String)public static byte[] encode(byte[] bytes)
Encodes the specified bytes using the Base64
encoding.
bytes - the bytes to be encoded.
decode(byte[])public static String encode(String string)
Encodes the specified string using the Base64
encoding.
string - the string to be encoded.
encode(byte[]),
decode(String)public static boolean encoded(byte[] bytes)
Checks to see if the specified bytes is Base64 encoded or
not.
bytes - the bytes to be checked.
true if the bytes are Base64
encoded, false if not.public static boolean encoded(String string)
Checks to see if the specified string is Base64 encoded
or not.
string - the string to be checked.
true if the string are Base64
encoded, false if not.encoded(byte[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||