Interface JsonHandler
-
public interface JsonHandlerTheJSONHandlerinterface receives notifications from theJsonParser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidarray()Receive notification about the start of an JSON array.voidendArray()Receive notification about the end of an JSON array.voidendObject()Receive notification about the end of an JSON object.voidkey(String key)Receive 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).voidvalue(String value)Receive notification about the given JSON String value.
-
-
-
Method Detail
-
object
void object() throws IOExceptionReceive notification about the start of an JSON object.- Throws:
IOException- If an error occurs.
-
endObject
void endObject() throws IOExceptionReceive notification about the end of an JSON object.- Throws:
IOException- If an error occurs.
-
array
void array() throws IOExceptionReceive notification about the start of an JSON array.- Throws:
IOException- If an error occurs.
-
endArray
void endArray() throws IOExceptionReceive notification about the end of an JSON array.- Throws:
IOException- If an error occurs.
-
key
void key(String key) throws IOException
Receive notification about the given JSON key.- Parameters:
key- The key.- Throws:
IOException- If an error occurs.
-
value
void value(String value) throws IOException
Receive notification about the given JSON String value.- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
void value(boolean value) throws IOExceptionReceive notification about the given JSON boolean value.- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
void value(long value) throws IOExceptionReceive notification about the given JSON number value (long).- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
value
void value(double value) throws IOExceptionReceive notification about the given JSON number value (double).- Parameters:
value- The value.- Throws:
IOException- If an error occurs.
-
-