com.cosylab.epics.caj.util
Class HexDump

java.lang.Object
  extended by com.cosylab.epics.caj.util.HexDump

public class HexDump
extends Object

Utility for dumping binary data.

Version:
$id$
Author:
Matej Sekoranja

Constructor Summary
HexDump()
           
 
Method Summary
static void hexDump(String name, byte[] bs)
          Output a buffer in hex format.
static void hexDump(String name, byte[] bs, int len)
          Output a buffer in hex format.
static void hexDump(String name, byte[] bs, int start, int len)
          Output a buffer in 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

hexDump

public static void hexDump(String name,
                           byte[] bs)
Output a buffer in hex format.

Parameters:
name - name (desctription) of the message.
bs - buffer to dump

hexDump

public static void hexDump(String name,
                           byte[] bs,
                           int len)
Output a buffer in hex format.

Parameters:
name - name (desctription) of the message.
bs - buffer to dump
len - first bytes (length) to dump.

hexDump

public static void hexDump(String name,
                           byte[] bs,
                           int start,
                           int len)
Output a buffer in hex format.

Parameters:
name - name (desctription) of the message.
bs - buffer to dump
start - dump message using given offset.
len - first bytes (length) to dump.


Copyright © 2004-2013 Cosylab. All Rights Reserved.