org.fusesource.hawtbuf
Class HexSupport

java.lang.Object
  extended by org.fusesource.hawtbuf.HexSupport

public final class HexSupport
extends Object

Used to convert to hex from byte arrays and back.

Version:
$Revision: 1.2 $

Method Summary
static Buffer toBufferFromHex(String hex)
           
static String toHexFromBuffer(Buffer buffer)
           
static String toHexFromInt(int value, boolean trim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.