( String source)
| 70 | } |
| 71 | |
| 72 | public static String toBase64( String source) { |
| 73 | byte[] inputBytes = toUTFArray(source); |
| 74 | return toBase64(inputBytes, inputBytes.length); |
| 75 | } |
| 76 | |
| 77 | public static String toBase64( byte source[], int len) { |
| 78 | String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; |
no test coverage detected