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.String | bytesToHex(byte[] bytes,
          int offset,
          int length) | 
| static <T> java.lang.reflect.Constructor<T> | getProtectedConstructor(java.lang.Class<T> 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 bytesToHex(byte[] bytes,
                                          int offset,
                                          int length)
public static java.lang.String wrapCharArray(char[] c)
public static <T> java.lang.reflect.Constructor<T> getProtectedConstructor(java.lang.Class<T> klass,
                                                                           java.lang.Class<?>... paramTypes)
klass - - name of the classparamTypes - - types of the constructor parametersCopyright © 2018 The Apache Software Foundation