public class JsonResourceFile extends BaseResourceFile implements EzJsonFile
| Constructor and Description |
|---|
JsonResourceFile(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
fromJson(Class<T> clazz) |
<T> T |
fromJson(Type typeOfT) |
<T> List<T> |
fromJsonAsList(Class<T[]> clazz) |
getStreamreadContent, readLinespublic JsonResourceFile(String fileName)
public <T> T fromJson(Class<T> clazz) throws IOException
fromJson in interface EzJsonFileIOExceptionpublic <T> T fromJson(Type typeOfT) throws IOException
fromJson in interface EzJsonFileIOExceptionpublic <T> List<T> fromJsonAsList(Class<T[]> clazz) throws IOException
fromJsonAsList in interface EzJsonFileIOExceptionCopyright © 2019. All Rights Reserved.