public class FileAdapter extends Object
| Constructor and Description |
|---|
FileAdapter() |
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
extractJSONObject(String filePath)
Reads the content of the file at the provided path.It checks whether the content begins as JSON or XML and will try to read it as such.
|
public static org.json.JSONObject extractJSONObject(String filePath) throws AdapterException
filePath - file path from which to attempt loading the fileAdapterException - when failed to open file or JSON/XML is malformedCopyright © 2022. All rights reserved.