Class ByteBufUtil.HexUtil

  • Enclosing class:
    ByteBufUtil

    private static final class ByteBufUtil.HexUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HexUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void appendHexDumpRowPrefix​(java.lang.StringBuilder dump, int row, int rowStartIndex)  
      private static void appendPrettyHexDump​(java.lang.StringBuilder dump, ByteBuf buf, int offset, int length)  
      private static java.lang.String hexDump​(byte[] array, int fromIndex, int length)  
      private static java.lang.String hexDump​(ByteBuf buffer, int fromIndex, int length)  
      private static java.lang.String prettyHexDump​(ByteBuf buffer, int offset, int length)  
      • Methods inherited from class java.lang.Object

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

      • BYTE2CHAR

        private static final char[] BYTE2CHAR
      • HEXDUMP_TABLE

        private static final char[] HEXDUMP_TABLE
      • HEXPADDING

        private static final java.lang.String[] HEXPADDING
      • HEXDUMP_ROWPREFIXES

        private static final java.lang.String[] HEXDUMP_ROWPREFIXES
      • BYTE2HEX

        private static final java.lang.String[] BYTE2HEX
      • BYTEPADDING

        private static final java.lang.String[] BYTEPADDING
    • Constructor Detail

      • HexUtil

        private HexUtil()
    • Method Detail

      • hexDump

        private static java.lang.String hexDump​(ByteBuf buffer,
                                                int fromIndex,
                                                int length)
      • hexDump

        private static java.lang.String hexDump​(byte[] array,
                                                int fromIndex,
                                                int length)
      • prettyHexDump

        private static java.lang.String prettyHexDump​(ByteBuf buffer,
                                                      int offset,
                                                      int length)
      • appendPrettyHexDump

        private static void appendPrettyHexDump​(java.lang.StringBuilder dump,
                                                ByteBuf buf,
                                                int offset,
                                                int length)
      • appendHexDumpRowPrefix

        private static void appendHexDumpRowPrefix​(java.lang.StringBuilder dump,
                                                   int row,
                                                   int rowStartIndex)