Class HexDumper


  • public class HexDumper
    extends java.lang.Object
    Utility class for creating a nice human readable dump of binary data. It might look something like this:
          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F    ................
          69 68 67 66 65 64 63 62 61 61 6A 6B 6C 6D 6E 00    ihgfedcbaajklmn.
          41 00                                              A.
          Length: 34
    
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  HexDumper.Instance  
    • Constructor Summary

      Constructors 
      Constructor Description
      HexDumper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String dump​(byte[] data)  
      static java.lang.String dump​(byte[] data, int marker)  
      static java.lang.String dump​(io.netty.buffer.ByteBuf data)  
      • Methods inherited from class java.lang.Object

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

      • HexDumper

        public HexDumper()
    • Method Detail

      • dump

        public static java.lang.String dump​(io.netty.buffer.ByteBuf data)
      • dump

        public static java.lang.String dump​(byte[] data)
      • dump

        public static java.lang.String dump​(byte[] data,
                                            int marker)