| |
|
| java.lang.Object org.jvyamlb.util.Base64Coder
Method Summary | |
public static byte[] | decode(byte[] in) Decodes Base64 data.
No blanks or line breaks are allowed within the Base64 encoded data.
Parameters: in - a character array containing the Base64 encoded data. | public static String | encode(String s) Encodes a string into Base64 format.
No blanks or line breaks are inserted.
Parameters: s - a String to be encoded. | public static char[] | encode(byte[] in) Encodes a byte array into Base64 format.
No blanks or line breaks are inserted.
Parameters: in - an array containing the data bytes to be encoded. |
decode | public static byte[] decode(byte[] in)(Code) | | Decodes Base64 data.
No blanks or line breaks are allowed within the Base64 encoded data.
Parameters: in - a character array containing the Base64 encoded data. An array containing the decoded data bytes. throws: IllegalArgumentException - if the input is not valid Base64 encoded data. |
encode | public static String encode(String s)(Code) | | Encodes a string into Base64 format.
No blanks or line breaks are inserted.
Parameters: s - a String to be encoded. A String with the Base64 encoded data. |
encode | public static char[] encode(byte[] in)(Code) | | Encodes a byte array into Base64 format.
No blanks or line breaks are inserted.
Parameters: in - an array containing the data bytes to be encoded. A character array with the Base64 encoded data. |
|
|
|