| java.lang.Object sunlabs.brazil.util.Base64
Base64 | public class Base64 (Code) | | Utility to base64 encode and decode a string.
author: Stephen Uhler version: 1.5, 01/01/07 |
encodeData | static byte[] encodeData(Code) | | |
decode | public static byte[] decode(String s)(Code) | | A Base64 decoder. This implementation is slow, and
doesn't handle wrapped lines.
The output is undefined if there are errors in the input.
Parameters: s - a Base64 encoded string |
encode | public static String encode(String s)(Code) | | base-64 encode a string
Parameters: s - The ascii string to encode |
main | public static void main(String[] args)(Code) | | Test the decoder and encoder
|
|
|