|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JsonEventListener
Defines the contract to handle JsonEvents when building an object or array.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |