Result - The result type.public interface JsonHandler<Result>
JsonHandler handles the events that are generated by a
JsonPushParser and calculates a result.| Modifier and Type | Method and Description |
|---|---|
Result |
getResult()
Returns the calculated result.
|
void |
onArrayBegin()
Called when the parsing of a JSON array started.
|
void |
onArrayEnd()
Called when the parsing of a JSON array ended.
|
void |
onBoolean(boolean value)
Called when the parsing of a JSON object encountered a JSON boolean.
|
void |
onDocumentBegin()
Called when the parsing of a JSON document started.
|
void |
onDocumentEnd()
Called when the parsing of a JSON document ended.
|
void |
onDouble(double value)
Called when the parsing of a JSON object encountered a JSON number, that
represents a decimal value.
|
void |
onEndObject()
Called when the parsing of a JSON object ended.
|
void |
onLong(long value)
Called when the parsing of a JSON object encountered a JSON number, that
represents an integer value.
|
void |
onName(String name)
Called when the parsing of a JSON object encountered the name for the
next JSON value.
|
void |
onNull()
Called when the parsing of a JSON object encountered a JSON null.
|
void |
onObjectBegin()
Called when the parsing of a JSON object started.
|
void |
onString(String value)
Called when the parsing of a JSON object encountered a JSON string.
|
void onDocumentBegin()
void onDocumentEnd()
void onArrayBegin()
end will eventually be called.void onArrayEnd()
void onObjectBegin()
end will eventually be called.void onName(String name)
name - The name for the next JSON value.void onEndObject()
void onNull()
void onBoolean(boolean value)
value - The value of the JSON boolean.void onLong(long value)
value - The value of the JSON number.void onDouble(double value)
value - The value of the JSON number.void onString(String value)
value - The value of the JSON string.Result getResult()
Copyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.