public class HexCodec
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
hexDump(byte[] data,
int start,
int end)
Returns a hex dump of a part of a byte array.
|
static void |
hexEncode2(@NotNull java.lang.StringBuilder sb,
int value)
Append a given value as a two digits hexadecimal number.
|
public static void hexEncode2(@NotNull @NotNull java.lang.StringBuilder sb, int value)
sb
- the StringBuilder
to append tovalue
- the value to appendpublic static java.lang.String hexDump(byte[] data, int start, int end)
data
- the byte array to dumpstart
- the starting indexend
- the end index