Package org.apache.activemq.util
Class HexSupport
java.lang.Object
org.apache.activemq.util.HexSupport
Used to convert to hex from byte arrays and back.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toBytesFromHex(String hex) static StringtoHexFromBytes(byte[] bytes) static StringtoHexFromInt(int value, boolean trim)
-
Method Details
-
toBytesFromHex
- Parameters:
hex-- Returns:
- array of bytes
-
toHexFromBytes
- Parameters:
bytes-- Returns:
- string hex value
-
toHexFromInt
- Parameters:
value-trim- if the leading 0's should be trimmed off.- Returns:
- string hex value
-