public class

Hex

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.Hex

Class Overview

Basic hex operations: from byte array to string and vice versa. TODO: move to the framework and consider implementing as native code.

Summary

Public Constructors
Hex()
Public Methods
static byte[] decodeHex(String hexString)
Quickly converts a hexadecimal string to a byte array.
static String encodeHex(byte[] array, boolean zeroTerminated)
Quickly converts a byte array to a hexadecimal string representation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Hex ()

Public Methods

public static byte[] decodeHex (String hexString)

Quickly converts a hexadecimal string to a byte array.

public static String encodeHex (byte[] array, boolean zeroTerminated)

Quickly converts a byte array to a hexadecimal string representation.

Parameters
array byte array, possibly zero-terminated.