public class LicasJSONParser extends JSONParser
JSONParser to allow for other
licas-specific methods to be added.S_END, S_IN_ARRAY, S_IN_ERROR, S_IN_FINISHED_VALUE, S_IN_OBJECT, S_IN_PAIR_VALUE, S_INIT, S_PASSED_PAIR_KEY| Constructor and Description |
|---|
LicasJSONParser()
Create a new instance of LicasJSONParser
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
parseObj(java.lang.String jsonStr)
Parse the data string to create the json object.
|
JSONObject |
parseToObj(java.io.FileReader fileReader)
Parse the file to create the json object.
|
public LicasJSONParser()
public JSONObject parseToObj(java.io.FileReader fileReader) throws java.lang.Exception
fileReader - the file to read.java.lang.Exception - any error.public JSONObject parseObj(java.lang.String jsonStr) throws java.lang.Exception
jsonStr - the data string to read.java.lang.Exception - any error.