パッケージ jcifs.util

クラス Hexdump


  • public class Hexdump
    extends Object
    • フィールドの詳細

      • HEX_DIGITS

        public static final char[] HEX_DIGITS
    • コンストラクタの詳細

      • Hexdump

        public Hexdump()
    • メソッドの詳細

      • toHexString

        public static String toHexString​(int val,
                                         int size)
        This is an alternative to the java.lang.Integer.toHexString method. It is an efficient relative that also will pad the left side so that the result is size digits.
        パラメータ:
        val -
        size -
        戻り値:
        hex string
      • toHexString

        public static String toHexString​(long val,
                                         int size)
        パラメータ:
        val -
        size -
        戻り値:
        hex string
      • toHexString

        public static String toHexString​(byte[] src,
                                         int srcIndex,
                                         int size)
        パラメータ:
        src -
        srcIndex -
        size -
        戻り値:
        hex string
      • toHexString

        public static String toHexString​(byte[] data)
        パラメータ:
        data -
        戻り値:
        hex string
      • toHexChars

        public static void toHexChars​(int val,
                                      char[] dst,
                                      int dstIndex,
                                      int size)
        This is the same as toHexString(int val, int size) but provides a more practical form when trying to avoid String concatenation and StringBuffer.
        パラメータ:
        val -
        dst -
        dstIndex -
        size -
      • toHexChars

        public static void toHexChars​(long val,
                                      char[] dst,
                                      int dstIndex,
                                      int size)
        パラメータ:
        val -
        dst -
        dstIndex -
        size -