Encodes a byte array into Base64 format and breaks the output into lines of 76 characters. This method is compatible with sun.misc.BASE64Encoder.encodeBuffer(byte[]) . @param in An array containing the data bytes to be encoded. @return A String containing the Base64 encoded data, broken
(byte[] in)
| 97 | * @param in An array containing the data bytes to be encoded. |
| 98 | * @return A String containing the Base64 encoded data, broken into lines. */ |
| 99 | public static String encodeLines (byte[] in) { |
| 100 | return encodeLines(in, 0, in.length, 76, systemLineSeparator, regularMap.encodingMap); |
| 101 | } |
| 102 | |
| 103 | public static String encodeLines (byte[] in, int iOff, int iLen, int lineLen, String lineSeparator, CharMap charMap) { |
| 104 | return encodeLines(in, iOff, iLen, lineLen, lineSeparator, charMap.encodingMap); |