public interface JsonLocation
JsonLocation
information can be used to identify incorrect JSON
or can be used by higher frameworks to know about the processing location.
All the information provided by a JsonLocation
is optional. For
example, a provider may only report line numbers. Also, there may not be any
location information for an input source. For example, if a
JsonParser
is created using
JsonArray
input source, all the methods in
this class return -1.
JsonParser
,
JsonParsingException
Modifier and Type | Method and Description |
---|---|
long |
getColumnNumber()
Return the column number (starts with 1 for the first column) for the current JSON event in the input source.
|
long |
getLineNumber()
Return the line number (starts with 1 for the first line) for the current JSON event in the input source.
|
long |
getStreamOffset()
Return the stream offset into the input source this location
is pointing to.
|
long getLineNumber()
long getColumnNumber()
long getStreamOffset()
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.