Package org.apache.wiki.util
Class ByteUtils
java.lang.Object
org.apache.wiki.util.ByteUtils
public class ByteUtils extends Object
A collection of static byte utility methods.
-
Method Summary
Modifier and Type Method Description static Stringbyte2hex(byte b)byte to hex conversion.static Stringbytes2hex(byte[] bytes)byte[] array to hex conversion.static inthexToBin(char c)Converts a single hex character into its integer equivalent.static byte[]parseHexBinary(String hex)Parses a hexadecimal string into its corresponding bytes.
-
Method Details
-
bytes2hex
byte[] array to hex conversion. Note that this provides no delimiters; the bytes are simply concatenated. -
byte2hex
byte to hex conversion. -
parseHexBinary
Parses a hexadecimal string into its corresponding bytes. -
hexToBin
Converts a single hex character into its integer equivalent.
-