public class SerializableUtil extends Object
| Constructor and Description |
|---|
SerializableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
readFromFile(Class<T> clazz,
String path)
read from file
|
static String |
writeToFile(Object obj,
String path)
write to file
|
public static String writeToFile(Object obj, String path)
obj - path - public static <T> T readFromFile(Class<T> clazz, String path)
T - clazz - path - IOExceptionClassNotFoundExceptionCopyright © 2021. All rights reserved.