Interface JsonHandler
public interface JsonHandler
The
JSONHandler interface receives notifications from the
JsonParser.-
Method Summary
Modifier and TypeMethodDescriptionvoidarray()Receive notification about the start of an JSON array.voidendArray()Receive notification about the end of an JSON array.voidReceive notification about the end of an JSON object.voidReceive notification about the given JSON key.voidobject()Receive notification about the start of an JSON object.voidvalue(boolean value) Receive notification about the given JSON boolean value.voidvalue(double value) Receive notification about the given JSON number value (double).voidvalue(long value) Receive notification about the given JSON number value (long).voidReceive notification about the given JSON String value.
-
Method Details
-
object
Receive notification about the start of an JSON object.- Throws:
IOException- If an error occurs.
-
endObject
Receive notification about the end of an JSON object.- Throws:
IOException- If an error occurs.
-
array
Receive notification about the start of an JSON array.- Throws:
IOException- If an error occurs.
-
endArray
Receive notification about the end of an JSON array.- Throws:
IOException- If an error occurs.
-
key
Receive notification about the given JSON key.- Parameters:
key- The key.- Throws:
IOException- If an error occurs.
-
value
Receive notification about the given JSON String value.- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
Receive notification about the given JSON boolean value.- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
Receive notification about the given JSON number value (long).- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
Receive notification about the given JSON number value (double).- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-