public final class ConvertUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttributeValue(Object object,
String property) |
static int |
getBytesLength(String s) |
static List<String> |
getStringArrayByBytesLength(String string,
List<Integer> filedBytesPosList) |
static void |
setAttributeValue(Object object,
String property,
Object value) |
static <T> T |
textToObject(Class<T> clazz,
TextRow titleRow,
TextRow dataRow) |
static <T> List<T> |
textToObjectList(Class<T> clazz,
Text text) |
public static String getAttributeValue(Object object, String property) throws ConvertException
ConvertExceptionpublic static void setAttributeValue(Object object, String property, Object value) throws ConvertException
ConvertExceptionpublic static <T> List<T> textToObjectList(Class<T> clazz, Text text) throws ConvertException
ConvertExceptionpublic static <T> T textToObject(Class<T> clazz, TextRow titleRow, TextRow dataRow) throws ConvertException
ConvertExceptionpublic static int getBytesLength(String s) throws ConvertException
ConvertExceptionpublic static List<String> getStringArrayByBytesLength(String string, List<Integer> filedBytesPosList) throws ConvertException
ConvertExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.