|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.utils.base64
public class base64
Routines for converting between Strings of base64-encoded data and arrays of binary data.
Method Summary | |
---|---|
static String |
formatString(byte[] b,
int lineLength,
String prefix,
boolean addClose)
Formats data into a nicely formatted base64 encoded String |
static byte[] |
fromString(String str)
Convert a base64-encoded String to binary data |
static String |
toString(byte[] b)
Convert binary data to a base64-encoded String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toString(byte[] b)
b
- An array containing binary data
public static String formatString(byte[] b, int lineLength, 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 not
public static byte[] fromString(String str)
str
- A String containing the encoded data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |