パッケージ jcifs.smb1.util
クラス Hexdump
- java.lang.Object
-
- jcifs.smb1.util.Hexdump
-
public class Hexdump extends Object
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static char[]HEX_DIGITS
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Hexdump()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static voidhexdump(PrintStream ps, byte[] src, int srcIndex, int length)Generate "hexdump" output of the buffer at src like the following:static voidtoHexChars(int val, char[] dst, int dstIndex, int size)This is the same astoHexString(int val, int size)but provides a more practical form when trying to avoidStringconcatenation andStringBuffer.static voidtoHexChars(long val, char[] dst, int dstIndex, int size)static StringtoHexString(byte[] src, int srcIndex, int size)static StringtoHexString(int val, int size)This is an alternative to thejava.lang.Integer.toHexString method.static StringtoHexString(long val, int size)
-
-
-
メソッドの詳細
-
hexdump
public static void hexdump(PrintStream ps, byte[] src, int srcIndex, int length)
Generate "hexdump" output of the buffer at src like the following:00000: 04 d2 29 00 00 01 00 00 00 00 00 01 20 45 47 46 |..)......... EGF| 00010: 43 45 46 45 45 43 41 43 41 43 41 43 41 43 41 43 |CEFEECACACACACAC| 00020: 41 43 41 43 41 43 41 43 41 43 41 41 44 00 00 20 |ACACACACACAAD.. | 00030: 00 01 c0 0c 00 20 00 01 00 00 00 00 00 06 20 00 |..... ........ .| 00040: ac 22 22 e1 |."". |
-
toHexString
public static String toHexString(int val, int size)
This is an alternative to thejava.lang.Integer.toHexString method. It is an efficient relative that also will pad the left side so that the result issizedigits.
-
toHexString
public static String toHexString(long val, int size)
-
toHexString
public static String toHexString(byte[] src, int srcIndex, int size)
-
toHexChars
public static void toHexChars(int val, char[] dst, int dstIndex, int size)This is the same astoHexString(int val, int size)but provides a more practical form when trying to avoidStringconcatenation andStringBuffer.
-
toHexChars
public static void toHexChars(long val, char[] dst, int dstIndex, int size)
-
-