| |
|
| java.lang.Object com.icesoft.util.encoding.Base64
Base64 | public class Base64 (Code) | | This Base64 is a utility class for encoding using the Base64
encoding.
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).
|
Method Summary | |
public static byte[] | encode(byte[] bytes) Encodes the specified bytes using the Base64 encoding. | public static String | encode(String string) Encodes the specified string using the Base64 encoding. | public static byte[] | encodeForURL(byte[] bytes) Encodes the specified bytes using the Base64 encoding for
URL usage. |
encode | public static byte[] encode(byte[] bytes)(Code) | | Encodes the specified bytes using the Base64 encoding.
Parameters: bytes - the bytes to be encoded. the Base64-encoded bytes. See Also: Base64.encode(String) |
encode | public static String encode(String string)(Code) | | Encodes the specified string using the Base64 encoding.
Parameters: string - the string to be encoded. the Base64-encoded string. See Also: Base64.encode(byte[]) |
encodeForURL | public static byte[] encodeForURL(byte[] bytes)(Code) | | Encodes the specified bytes using the Base64 encoding for
URL usage.
Parameters: bytes - the bytes to be encoded. the Base64-encoded bytes for URL usage. |
|
|
|