public interface JsonEventListener
Modifier and Type | Method | Description |
---|---|---|
void |
onArrayEnd() |
Ttriggered when reaching the end of an array.
|
void |
onArrayStart() |
triggered when the start of an array is encountered.
|
void |
onElementAdded(int index,
Object element) |
Triggered when an element has been added to the current array.
|
void |
onError(JSONException jsone) |
Triggered when an exception is thrown.
|
void |
onObjectEnd() |
triggered when reaching the end of an object.
|
void |
onObjectStart() |
Triggered when the start of an object is encountered.
|
void |
onPropertySet(String key,
Object value,
boolean accumulated) |
Triggered when a property is set on an object
|
void |
onWarning(String warning) |
Triggered when a warning is encountered.
|
void onArrayEnd()
void onArrayStart()
void onElementAdded(int index, Object element)
index
- the index where the element was addedelement
- the added elementvoid onError(JSONException jsone)
jsone
- the thrown exceptionvoid onObjectEnd()
void onObjectStart()
void onPropertySet(String key, Object value, boolean accumulated)
key
- the name of the propertyvalue
- the value of the propertyaccumulated
- if the value has been accumulated over 'key'void onWarning(String warning)
warning
- the warning messageCopyright © 2006–2019 Json-lib. All rights reserved.