public class ByteArrayConvertor extends Object implements ToStringConverter, ToValueConvertor
| Constructor and Description |
|---|
ByteArrayConvertor() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToString(Object srcData) |
Object |
convertToValue(String text) |
static byte[] |
decodeHex(String bytes) |
static Byte[] |
decodeHexBytes(String bytes) |
static String |
encodeHex(byte[] bytes) |
static String |
encodeHex(Byte[] bytes) |
static String |
getHex(byte byteValue)
Возвращает двух символьное представление байта
|
static String |
getHex(byte[] bytes)
Возвращает символное-hex представление байтов
|
static String |
getHex(Byte[] bytes)
Возвращает символное-hex представление байтов
|
public static final Class type
public static String getHex(byte[] bytes)
bytes - Набор байтовpublic static String getHex(Byte[] bytes)
bytes - Набор байтовpublic static String getHex(byte byteValue)
byteValue - байтpublic static String encodeHex(byte[] bytes)
public static byte[] decodeHex(String bytes)
public String convertToString(Object srcData) throws Throwable
convertToString in interface ToStringConverterThrowablepublic Object convertToValue(String text) throws Throwable
convertToValue in interface ToValueConvertorThrowableCopyright © 2017. All rights reserved.