net.rim.device.api.util
Class ByteArrayUtilities

java.lang.Object
  extended by 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 6.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 6.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 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal