org.xbill.DNS.utils
Class hexdump
java.lang.Object
org.xbill.DNS.utils.hexdump
public class hexdump
- extends Object
A routine to produce a nice looking hex dump
- Author:
- Brian Wellington
Method Summary |
static String |
dump(String s,
byte[] b)
|
static String |
dump(String description,
byte[] b,
int offset,
int length)
Dumps a byte array into hex format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hexdump
public hexdump()
dump
public static String dump(String description,
byte[] b,
int offset,
int length)
- Dumps a byte array into hex format.
- Parameters:
description
- If not null, a description of the data.b
- The data to be printed.offset
- The start of the data in the array.length
- The length of the data in the array.
dump
public static String dump(String s,
byte[] b)