net.rim.device.api.util
Class ByteArrayUtilities

java.lang.Object
  |
  +--net.rim.device.api.util.ByteArrayUtilities

public final class ByteArrayUtilities
extends Object

Performs conversions between a byte array and hexadecimal, and vice versa.

Since:
BlackBerry API 5.0.0

Method Summary
static String byteArrayToHex(byte[] raw)
          Converts a byte array to a hexadecimal representation
static byte[] hexToByteArray(String hex)
          Converts a hexadecimal string to a byte array
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

byteArrayToHex

public static String byteArrayToHex(byte[] raw)
Converts a byte array to a hexadecimal representation
Parameters:
raw - the byte array to convert.
Returns:
the hexadecimal representation of the specified byte array.
Since:
BlackBerry API 5.0.0

hexToByteArray

public static byte[] hexToByteArray(String hex)
Converts a hexadecimal string to a byte array
Parameters:
hex - the string to convert
Returns:
the hexadecimal representation of the specified byte array.
Since:
BlackBerry API 5.0.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.