Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static String | hexDump (final byte @NotNull[] data, final int start, final int end) |
static void | hexEncode2 (@NotNull final StringBuilder sb, final int value) |
Private Member Functions | |
HexCodec () | |
Static Private Member Functions | |
static void | hexEncode4 (@NotNull final StringBuilder sb, final int value) |
Static Private Attributes | |
static final CharSequence | HEX_CHARS = "0123456789abcdef" |
Utility class for en-/decoding hexadecimal strings.
Definition at line 31 of file HexCodec.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 42 of file HexCodec.java.
|
static |
Returns a hex dump of a part of a byte array.
data | the byte array to dump |
start | the starting index |
end | the end index |
Definition at line 72 of file HexCodec.java.
References com.realtime.crossfire.jxclient.util.HexCodec.hexEncode2(), and com.realtime.crossfire.jxclient.util.HexCodec.hexEncode4().
Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.hexDump().
|
static |
Append a given value as a two digits hexadecimal number.
sb | the StringBuilder
|
value | the value to append |
Definition at line 50 of file HexCodec.java.
References com.realtime.crossfire.jxclient.util.HexCodec.HEX_CHARS.
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.encode(), com.realtime.crossfire.jxclient.util.HexCodec.hexDump(), and com.realtime.crossfire.jxclient.util.HexCodec.hexEncode4().
|
staticprivate |
Append a given value as a four digits hexadecimal number.
sb | the StringBuilder
|
value | the value to append |
Definition at line 60 of file HexCodec.java.
References com.realtime.crossfire.jxclient.util.HexCodec.hexEncode2().
Referenced by com.realtime.crossfire.jxclient.util.HexCodec.hexDump().
|
staticprivate |
Hex characters for values 0-15.
Definition at line 37 of file HexCodec.java.
Referenced by com.realtime.crossfire.jxclient.util.HexCodec.hexEncode2().