org.xbill.DNS.utils
public class base64 extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatString(byte[] b,
int lineLength,
java.lang.String prefix,
boolean addClose)
Formats data into a nicely formatted base64 encoded String
|
static byte[] |
fromString(java.lang.String str)
Convert a base64-encoded String to binary data
|
static java.lang.String |
toString(byte[] b)
Convert binary data to a base64-encoded String
|
public static java.lang.String toString(byte[] b)
b
- An array containing binary datapublic static java.lang.String formatString(byte[] b, int lineLength, java.lang.String prefix, boolean addClose)
b
- An array containing binary datalineLength
- The number of characters per lineprefix
- A string prefixing the characters on each lineaddClose
- Whether to add a close parenthesis or notpublic static byte[] fromString(java.lang.String str)
str
- A String containing the encoded data