org.rhq.core.util
Class ByteUtil

java.lang.Object
  extended by org.rhq.core.util.ByteUtil

public class ByteUtil
extends Object

Utilities for working with bytes and byte arrays.

Author:
Lukas Krejci

Method Summary
static String toHexString(byte[] bytes)
          Converts the byte array into a string of hexadecimal numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toHexString

public static String toHexString(byte[] bytes)
Converts the byte array into a string of hexadecimal numbers. Each byte in the array is represented by exactly two characters in the resulting string, which form a hexadecimal number with the value that represents the bits in the byte.

Parameters:
bytes -
Returns:
a string of hexadecimal numbers representing the bytes


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.