Package io.dataease.plugins.common.util
Class PluginCommonUtil
- java.lang.Object
-
- io.dataease.plugins.common.util.PluginCommonUtil
-
public class PluginCommonUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PluginCommonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TcopyBean(T target, Object source)static <T> TcopyBean(T target, Object source, String... ignoreProperties)static ObjectgetFieldValueByName(String fieldName, Object bean)static MethodgetMethod(Object bean, String fieldName, Class<?> type)static StringreadFileContent(File file)static StringreadStreamContent(InputStream in)static voidsetFieldValueByName(Object bean, String fieldName, Object value, Class<?> type)
-
-
-
Method Detail
-
readStreamContent
public static String readStreamContent(InputStream in) throws Exception
- Throws:
Exception
-
copyBean
public static <T> T copyBean(T target, Object source)
-
setFieldValueByName
public static void setFieldValueByName(Object bean, String fieldName, Object value, Class<?> type)
-
-