Class HexCodec
java.lang.Object
com.realtime.crossfire.jxclient.util.HexCodec
Utility class for en-/decoding hexadecimal strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringhexDump(byte @NotNull [] data, int start, int end) Returns a hex dump of a part of a byte array.static voidhexEncode2(@NotNull StringBuilder sb, int value) Append a given value as a two digits hexadecimal number.
-
Method Details
-
hexEncode2
Append a given value as a two digits hexadecimal number.- Parameters:
sb- theStringBuilderto append tovalue- the value to append
-
hexDump
Returns a hex dump of a part of a byte array.- Parameters:
data- the byte array to dumpstart- the starting indexend- the end index- Returns:
- the hex dump
-