public interface JsonHandler
JSONHandler
interface receives notifications from the
JsonParser
.Modifier and Type | Method and 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(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(String value)
Receive notification about the given JSON String value.
|
void object() throws IOException
IOException
- If an error occurs.void endObject() throws IOException
IOException
- If an error occurs.void array() throws IOException
IOException
- If an error occurs.void endArray() throws IOException
IOException
- If an error occurs.void key(String key) throws IOException
key
- The key.IOException
- If an error occurs.void value(String value) throws IOException
value
- The value.IOException
- If an error occurs.void value(boolean value) throws IOException
value
- The value.IOException
- If an error occurs.void value(long value) throws IOException
value
- The value.IOException
- If an error occurs.void value(double value) throws IOException
value
- The value.IOException
- If an error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.