public class PrettyPrintFormat
extends java.lang.Object
| Constructor and Description |
|---|
PrettyPrintFormat(java.lang.String separator) |
PrettyPrintFormat(java.lang.String separator,
int lineLen) |
PrettyPrintFormat(java.lang.String separator,
int lineLen,
int indentSize) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
indent(int size)
Provide white space indention
stevep - speed improvements.
|
java.lang.String |
toHexString(byte[] in) |
java.lang.String |
toHexString(byte[] in,
int indentSize) |
java.lang.String |
toHexString(byte[] in,
int indentSize,
int lineLen) |
java.lang.String |
toHexString(byte[] in,
int indentSize,
int lineLen,
java.lang.String separator)
Convert Byte Array to Hex String Format
stevep - speedup by factor of 8
|
public PrettyPrintFormat(java.lang.String separator)
public PrettyPrintFormat(java.lang.String separator,
int lineLen)
public PrettyPrintFormat(java.lang.String separator,
int lineLen,
int indentSize)
public java.lang.String indent(int size)
size - number of white space to be returnedpublic java.lang.String toHexString(byte[] in,
int indentSize,
int lineLen,
java.lang.String separator)
in - byte array of data to hexifyindentSize - number of spaces to prepend before each linelineLen - number of bytes to output on each line (0
means: put everything on one lineseparator - the first character of this string will be used as
the separator between bytes.public java.lang.String toHexString(byte[] in,
int indentSize,
int lineLen)
public java.lang.String toHexString(byte[] in,
int indentSize)
public java.lang.String toHexString(byte[] in)