Package org.fusesource.hawtbuf
Class HexSupport
java.lang.Object
org.fusesource.hawtbuf.HexSupport
Used to convert to hex from byte arrays and back.
- Version:
- $Revision: 1.2 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Buffer
toBufferFromHex
(String hex) static String
toHexFromBuffer
(Buffer buffer) static String
toHexFromInt
(int value, boolean trim)
-
Field Details
-
HEX_TABLE
-
INT_OFFSETS
private static final int[] INT_OFFSETS
-
-
Constructor Details
-
HexSupport
private HexSupport()
-
-
Method Details
-
toBufferFromHex
- Parameters:
hex
-- Returns:
-
toHexFromBuffer
-
toHexFromInt
- Parameters:
value
-trim
- if the leading 0's should be trimmed off.- Returns:
-