org.tinygroup.convert.util
Class ConvertUtil

java.lang.Object
  extended by org.tinygroup.convert.util.ConvertUtil

public final class ConvertUtil
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributeValue

public static String getAttributeValue(Object object,
                                       String property)
                                throws ConvertException
Throws:
ConvertException

setAttributeValue

public static void setAttributeValue(Object object,
                                     String property,
                                     Object value)
                              throws ConvertException
Throws:
ConvertException

textToObjectList

public static <T> List<T> textToObjectList(Class<T> clazz,
                                           Text text)
                                throws ConvertException
Throws:
ConvertException

textToObject

public static <T> T textToObject(Class<T> clazz,
                                 TextRow titleRow,
                                 TextRow dataRow)
                      throws ConvertException
Throws:
ConvertException

getBytesLength

public static int getBytesLength(String s)
                          throws ConvertException
Throws:
ConvertException

getStringArrayByBytesLength

public static List<String> getStringArrayByBytesLength(String string,
                                                       List<Integer> filedBytesPosList)
                                                throws ConvertException
Throws:
ConvertException


Copyright © 2006–2015 TinyGroup. All rights reserved.