Class HexCodec
- java.lang.Object
-
- com.realtime.crossfire.jxclient.util.HexCodec
-
public class HexCodec extends java.lang.ObjectUtility class for en-/decoding hexadecimal strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringhexDump(byte @NotNull [] data, int start, int end)Returns a hex dump of a part of a byte array.static voidhexEncode2(@NotNull java.lang.StringBuilder sb, int value)Append a given value as a two digits hexadecimal number.
-
-
-
Method Detail
-
hexEncode2
public static void hexEncode2(@NotNull @NotNull java.lang.StringBuilder sb, int value)Append a given value as a two digits hexadecimal number.- Parameters:
sb- theStringBuilderto append tovalue- the value to append
-
hexDump
public static java.lang.String hexDump(byte @NotNull [] data, int start, int end)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
-
-