java.lang.Object
io.sf.jclf.util.HexCodec
An hexadecimal encoder/decoder.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HexCodec
public HexCodec()
-
-
Method Details
-
encode
Hex encode this array using lowercase letters.- Parameters:
b
- the byte array to be encoded.- Returns:
- the hex-encoded array.
-
encodeU
Hex encode this array using uppercase letters.- Parameters:
b
- the byte array to be encoded.- Returns:
- the hex-encoded (with uppercase letters) array.
-
decode
Hex decode this String.- Parameters:
h
- the String to be decoded.- Returns:
- the hex-decoded array.
-