public class Hex
extends java.lang.Object
Constructor and Description |
---|
Hex() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytesToHex(byte... bytes) |
static java.lang.reflect.Constructor |
getProtectedConstructor(java.lang.Class klass,
java.lang.Class... paramTypes)
Used to get access to protected/private constructor of the specified class
|
static byte[] |
hexToBytes(java.lang.String str) |
static java.lang.String |
wrapCharArray(char[] c)
Create a String from a char array with zero-copy (if available), using reflection to access a package-protected constructor of String.
|
public static byte[] hexToBytes(java.lang.String str)
public static java.lang.String bytesToHex(byte... bytes)
public static java.lang.String wrapCharArray(char[] c)
public static java.lang.reflect.Constructor getProtectedConstructor(java.lang.Class klass, java.lang.Class... paramTypes)
klass
- - name of the classparamTypes
- - types of the constructor parametersCopyright © 2013 The Apache Software Foundation