public interface JSONLocator
Locator information for JSON parser.
This can be used to retrieve the location in the JSON stream at which
parsing events were reported, including errors. This information is
transient and only valid at the time the event was fired or the
exception was thrown.
Note that JSON is a standalone file format.
Both line and column numbers start at 1.
- Author:
- Chris Burdess
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the column number currently being processed.intReturns the line number currently being processed.
-
Method Details
-
getLineNumber
int getLineNumber()Returns the line number currently being processed. The first line is line 1.- Returns:
- the current line number
-
getColumnNumber
int getColumnNumber()Returns the column number currently being processed. The first column in each line is column 1.- Returns:
- the current column number
-