public class FastJsonSerialiable extends Object
| 构造器和说明 |
|---|
FastJsonSerialiable() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<T> |
deserilizableForListFromFile(String InputfilePathName,
Class<T> clazz)
将json文件中的内容读取出来,反序列化为链表
|
static <K,V> Map<K,V> |
deserilizableForMapFromFile(String jsonStringFilePath,
Class<K> k,
Class<V> v)
将json文件中的内容读取出来,反序列化为HashMap
|
static String |
serilizableForList(Object objList,
String OutfilePathName)
将链表序列化为字符串存入json文件中
|
static String |
serilizableForMap(Object objMap,
String OutfilePathName)
将HashMap序列化为字符串存入json文件中
|
public static String serilizableForList(Object objList, String OutfilePathName) throws IOException
objList - OutfilePathName - IOExceptionpublic static <T> List<T> deserilizableForListFromFile(String InputfilePathName, Class<T> clazz) throws IOException
InputfilePathName - clazz - IOExceptionpublic static String serilizableForMap(Object objMap, String OutfilePathName) throws IOException
objMap - OutfilePathName - IOExceptionpublic static <K,V> Map<K,V> deserilizableForMapFromFile(String jsonStringFilePath, Class<K> k, Class<V> v) throws IOException
jsonStringFilePath - k - v - IOExceptionCopyright © 2022. All rights reserved.