public class INIToJSONObjectMapper extends AbstractINIMapper<net.minidev.json.JSONObject> implements Mapper<net.minidev.json.JSONObject>
Mapper that loads the contents of a valid INI Source
(e.g.: file, URL) as a JSONObject.| Constructor and Description |
|---|
INIToJSONObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
net.minidev.json.JSONObject |
apply(InputStream inputStream)
Applies this
Mapper into the given input. |
ConfigurationHelper<net.minidev.json.JSONObject> |
configurationHelper(net.minidev.json.JSONObject object)
Creates a new
ConfigurationHelper instance recommended by this Mapper. |
public net.minidev.json.JSONObject apply(InputStream inputStream) throws IOException
MapperMapper into the given input.
Note: The input stream must be closed by the caller after the mapping operation.
apply in interface Mapper<net.minidev.json.JSONObject>inputStream - the input stream to be mappedIOException - if a low-level I/O problem (such and unexpected end-of-input, or
network error) occurspublic ConfigurationHelper<net.minidev.json.JSONObject> configurationHelper(net.minidev.json.JSONObject object)
MapperConfigurationHelper instance recommended by this Mapper.configurationHelper in interface Mapper<net.minidev.json.JSONObject>object - the configuration object to be used by the helperConfigurationHelper instanceCopyright © 2022. All rights reserved.