Class IoBufferHexDumper


  • class IoBufferHexDumper
    extends java.lang.Object
    Provides utility methods to dump an IoBuffer into a hex formatted string.
    Version:
    $Rev: 686598 $, $Date: 2008-08-17 12:58:23 +0200 (Sun, 17 Aug 2008) $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte[] highDigits
      The high digits lookup table.
      private static byte[] lowDigits
      The low digits lookup table.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getHexdump​(IoBuffer in, int lengthLimit)
      Dumps an IoBuffer to a hex formatted string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • highDigits

        private static final byte[] highDigits
        The high digits lookup table.
      • lowDigits

        private static final byte[] lowDigits
        The low digits lookup table.
    • Constructor Detail

      • IoBufferHexDumper

        IoBufferHexDumper()
    • Method Detail

      • getHexdump

        public static java.lang.String getHexdump​(IoBuffer in,
                                                  int lengthLimit)
        Dumps an IoBuffer to a hex formatted string.
        Parameters:
        in - the buffer to dump
        lengthLimit - the limit at which hex dumping will stop
        Returns:
        a hex formatted string representation of the in Iobuffer.