Class HexDump


  • public class HexDump
    extends Object
    Utility for dumping binary data.
    Version:
    $id$
    Author:
    Matej Sekoranja
    • 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.