public class Utility extends Object
| Constructor and Description |
|---|
Utility() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
findField(Class<?> type,
Class<T> annotationClass) |
static <T> T |
fromXml(String xmlString,
Class<T> targetClass) |
static String |
getStringFromFile(String filePath) |
static boolean |
saveStringToFile(String filePath,
String content,
boolean isOverwrite) |
public static String getStringFromFile(String filePath) throws FileNotFoundException
FileNotFoundExceptionpublic static boolean saveStringToFile(String filePath, String content, boolean isOverwrite) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2016. All rights reserved.