org.xbill.DNS.utils
Class hexdump

java.lang.Object
  extended by org.xbill.DNS.utils.hexdump

public class hexdump
extends Object

A routine to produce a nice looking hex dump

Author:
Brian Wellington

Constructor Summary
hexdump()
           
 
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
 

Constructor Detail

hexdump

public hexdump()
Method Detail

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)