public abstract class BaseFile extends Object
| Constructor and Description |
|---|
BaseFile() |
| Modifier and Type | Method and Description |
|---|---|
String |
content() |
<T> T |
fromJson(Class<T> clazz) |
<T> List<T> |
fromJsonAsList(Class<T[]> clazz) |
protected abstract InputStream |
getStream() |
List<String> |
lines() |
protected abstract InputStream getStream() throws FileNotFoundException
FileNotFoundExceptionpublic String content() throws IOException
IOExceptionpublic List<String> lines() throws IOException
IOExceptionpublic <T> T fromJson(Class<T> clazz) throws IOException
IOExceptionpublic <T> List<T> fromJsonAsList(Class<T[]> clazz) throws IOException
IOExceptionCopyright © 2019. All Rights Reserved.