| java.lang.Object org.xbill.DNS.utils.base64
base64 | public class base64 (Code) | | Routines for converting between Strings of base64-encoded data and arrays of
binary data.
author: Brian Wellington |
formatString | public static String formatString(byte[] b, int lineLength, String prefix, boolean addClose)(Code) | | Formats data into a nicely formatted base64 encoded String
Parameters: b - An array containing binary data Parameters: lineLength - The number of characters per line Parameters: prefix - A string prefixing the characters on each line Parameters: addClose - Whether to add a close parenthesis or not A String representing the formatted output |
fromString | public static byte[] fromString(String str)(Code) | | Convert a base64-encoded String to binary data
Parameters: str - A String containing the encoded data An array containing the binary data, or null if the string is invalid |
toString | public static String toString(byte[] b)(Code) | | Convert binary data to a base64-encoded String
Parameters: b - An array containing binary data A String containing the encoded data |
|
|