public interface IDataRetriever
| Modifier and Type | Method and Description |
|---|---|
org.jsoup.nodes.Document |
getHtml(String path)
Tries to parse the content from a specified path as a
HTML document.
|
<T> T |
getObject(String path,
Class<T> targetClass)
Tries to parse the content from a specified path as a
JSON object.
|
<T> T |
getObject(String path,
Type targetType)
Tries to parse the content from a specified path as a
JSON object.
|
String |
getString(String path)
Tries to parse the content from a specified path as a string.
|
void |
setCharset(Charset charset)
Changes the charset used for (de-)serializing requests.
|
String getString(String path)
path - the path to a HTML file<T> T getObject(String path, Class<T> targetClass)
T - the type of the object that is to be readpath - the path to a JSON filetargetClass - the class of the object that is read from disc<T> T getObject(String path, Type targetType)
T - the type of the object that is to be readpath - the path to a JSON filetargetType - the type of the object that is read from discorg.jsoup.nodes.Document getHtml(String path)
path - the path to a HTML filevoid setCharset(Charset charset)
charset - the new charsetCopyright © 2017–2019. All rights reserved.