Interface JsonHandler
-
public interface JsonHandler
TheJSONHandler
interface receives notifications from theJsonParser
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
array()
Receive notification about the start of an JSON array.void
endArray()
Receive notification about the end of an JSON array.void
endObject()
Receive notification about the end of an JSON object.void
key(java.lang.String key)
Receive notification about the given JSON key.void
object()
Receive notification about the start of an JSON object.void
value(boolean value)
Receive notification about the given JSON boolean value.void
value(double value)
Receive notification about the given JSON number value (double).void
value(long value)
Receive notification about the given JSON number value (long).void
value(java.lang.String value)
Receive notification about the given JSON String value.
-
-
-
Method Detail
-
object
void object() throws java.io.IOException
Receive notification about the start of an JSON object.- Throws:
java.io.IOException
- If an error occurs.
-
endObject
void endObject() throws java.io.IOException
Receive notification about the end of an JSON object.- Throws:
java.io.IOException
- If an error occurs.
-
array
void array() throws java.io.IOException
Receive notification about the start of an JSON array.- Throws:
java.io.IOException
- If an error occurs.
-
endArray
void endArray() throws java.io.IOException
Receive notification about the end of an JSON array.- Throws:
java.io.IOException
- If an error occurs.
-
key
void key(java.lang.String key) throws java.io.IOException
Receive notification about the given JSON key.- Parameters:
key
- The key.- Throws:
java.io.IOException
- If an error occurs.
-
value
void value(java.lang.String value) throws java.io.IOException
Receive notification about the given JSON String value.- Parameters:
value
- The value.- Throws:
java.io.IOException
- If an error occurs.
-
value
void value(boolean value) throws java.io.IOException
Receive notification about the given JSON boolean value.- Parameters:
value
- The value.- Throws:
java.io.IOException
- If an error occurs.
-
value
void value(long value) throws java.io.IOException
Receive notification about the given JSON number value (long).- Parameters:
value
- The value.- Throws:
java.io.IOException
- If an error occurs.
-
value
void value(double value) throws java.io.IOException
Receive notification about the given JSON number value (double).- Parameters:
value
- The value.- Throws:
java.io.IOException
- If an error occurs.
-
-