public interface JsonPushParser extends Closeable
JsonPullParser is an event based JSON parser. It
reports it consume the underlying JSON
document and reports the appropriate events to a JsonHandler.| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the
column that corresponds to the
current position of the underlying JsonSource in the character
sequence, as if the character source was a regular file. |
int |
getLine()
Returns the
line that corresponds to the
current position of the underlying JsonSource in the character
sequence, as if the character source was a regular file. |
<Result> Result |
handle(JsonHandler<Result> handler)
Handle the character sequence from the
JsonSource and report to
the JsonHandler. |
<Result> Result handle(JsonHandler<Result> handler) throws IllegalArgumentException, JsonSyntaxException, IOException
JsonSource and report to
the JsonHandler.
Calling this method closes the underlying JsonSource, but it can
be closed manually.
Result - The result type of the JsonHandler.handler - The JsonHandler to report to.JsonHandler.IllegalArgumentException - If the given JsonHandler is null.JsonSyntaxException - If the JsonSyntaxException document contains a syntax
error.IOException - If reading from the underlying Reader failed.int getLine()
line that corresponds to the
current position of the underlying JsonSource in the character
sequence, as if the character source was a regular file.int getColumn()
column that corresponds to the
current position of the underlying JsonSource in the character
sequence, as if the character source was a regular file.Copyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.