public class PropertiesToJSONObjectMapper extends JSONObjectMapper implements Mapper<org.json.JSONObject>
Mapper that loads the contents of a Source (e.g.: file,
URL) in the Properties format (a sequence of key-value pairs) and converts it
into a JSONObject (json.org reference implementation).| Constructor and Description |
|---|
PropertiesToJSONObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
apply(InputStream inputStream) |
configurationHelperequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurationHelperpublic org.json.JSONObject apply(InputStream inputStream) throws IOException
apply in interface Mapper<org.json.JSONObject>apply in class JSONObjectMapperIOExceptionCopyright © 2021. All rights reserved.