org.fusesource.hawtbuf
Class HexSupport
java.lang.Object
org.fusesource.hawtbuf.HexSupport
public final class HexSupport
- extends Object
Used to convert to hex from byte arrays and back.
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toBufferFromHex
public static Buffer toBufferFromHex(String hex)
- Parameters:
hex
-
- Returns:
toHexFromBuffer
public static String toHexFromBuffer(Buffer buffer)
toHexFromInt
public static String toHexFromInt(int value,
boolean trim)
- Parameters:
value
- trim
- if the leading 0's should be trimmed off.
- Returns:
Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.