protected static final class DefaultUWSBackupManager.JSONObjectReader
extends java.lang.Object
implements java.util.Iterator<java.lang.String>
JSONTokener (that's to say directly from a file),
as an iterator which returns all the keys. The value of each key can be fetched thanks to
the different available getters (i.e. getJSONArray(), getJSONObject(),
getValue(), getString(), ...).| Constructor and Description |
|---|
JSONObjectReader(org.json.JSONTokener input,
UWSLog log) |
| Modifier and Type | Method and Description |
|---|---|
DefaultUWSBackupManager.JSONArrayReader |
getArrayReader() |
org.json.JSONArray |
getJSONArray() |
org.json.JSONObject |
getJSONObject() |
DefaultUWSBackupManager.JSONObjectReader |
getObjectReader() |
java.lang.String |
getString() |
java.lang.Object |
getValue() |
boolean |
hasNext() |
java.lang.String |
next() |
void |
remove() |
public JSONObjectReader(org.json.JSONTokener input,
UWSLog log)
throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONObject getJSONObject()
throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONArray getJSONArray()
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.String getString()
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.Object getValue()
throws org.json.JSONException
org.json.JSONExceptionpublic DefaultUWSBackupManager.JSONArrayReader getArrayReader() throws org.json.JSONException
org.json.JSONExceptionpublic DefaultUWSBackupManager.JSONObjectReader getObjectReader() throws org.json.JSONException
org.json.JSONExceptionpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.String>public java.lang.String next()
throws java.util.NoSuchElementException
next in interface java.util.Iterator<java.lang.String>java.util.NoSuchElementExceptionpublic void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iterator<java.lang.String>java.lang.UnsupportedOperationException