public class Hexdump extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
HEX_DIGITS |
Constructor and Description |
---|
Hexdump() |
Modifier and Type | Method and Description |
---|---|
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 . |
static void |
toHexChars(long val,
char[] dst,
int dstIndex,
int size) |
static String |
toHexString(byte[] data) |
static String |
toHexString(byte[] src,
int srcIndex,
int size) |
static String |
toHexString(int val,
int size)
This is an alternative to the
java.lang.Integer.toHexString
method. |
static String |
toHexString(long val,
int size) |
public static String toHexString(int val, int size)
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
- public static String toHexString(long val, int size)
val
- size
- public static String toHexString(byte[] src, int srcIndex, int size)
src
- srcIndex
- size
- public static String toHexString(byte[] data)
data
- public static void toHexChars(int val, char[] dst, int dstIndex, int size)
toHexString(int val, int
size)
but provides a more practical form when trying to avoid String
concatenation and StringBuffer
.val
- dst
- dstIndex
- size
- public static void toHexChars(long val, char[] dst, int dstIndex, int size)
val
- dst
- dstIndex
- size
- Copyright © 2020. All rights reserved.