public class Base64 extends Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
encodeToChar(byte[] sarr,
boolean lineSep)
Encodes a raw byte array into a BASE64
char[] representation i accordance with
RFC 2045. |
static String |
encodeToString(byte[] arr,
boolean lineSep)
Encodes a raw byte array into a BASE64
String representation i accordance with
RFC 2045. |
public static final char[] encodeToChar(byte[] sarr,
boolean lineSep)
char[] representation i accordance with
RFC 2045.sarr - The bytes to convert. If null or length 0 an empty array will be
returned.lineSep - Optional "\r\n" after 76 characters, unless end of file.null.public static final String encodeToString(byte[] arr, boolean lineSep)
String representation i accordance with
RFC 2045.arr - The bytes to convert. If null or length 0 an empty array will be
returned.lineSep - Optional "\r\n" after 76 characters, unless end of file.null.Copyright © 2018. All rights reserved.