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
ConvertException
public static void setAttributeValue(Object object, String property, Object value) throws ConvertException
ConvertException
public static <T> List<T> textToObjectList(Class<T> clazz, Text text) throws ConvertException
ConvertException
public static <T> T textToObject(Class<T> clazz, TextRow titleRow, TextRow dataRow) throws ConvertException
ConvertException
public static int getBytesLength(String s) throws ConvertException
ConvertException
public static List<String> getStringArrayByBytesLength(String string, List<Integer> filedBytesPosList) throws ConvertException
ConvertException
Copyright © 2006–2018 TinyGroup. All rights reserved.