-
public interface JSONLocatorLocator 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnNumber()Returns the column number currently being processed.intgetLineNumber()Returns the line number currently being processed.
-
-
-
Method Detail
-
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
-
-