Package org.eclipse.rdf4j.rio.helpers
Class SimpleParseLocationListener
java.lang.Object
org.eclipse.rdf4j.rio.helpers.SimpleParseLocationListener
- All Implemented Interfaces:
ParseLocationListener
A simple implementation of
ParseLocationListener
.- Author:
- Peter Ansell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
parseLocationUpdate
(long lineNo, long columnNo) Signals an update of a parser's progress, indicated by a line and column number.
-
Constructor Details
-
SimpleParseLocationListener
public SimpleParseLocationListener()
-
-
Method Details
-
parseLocationUpdate
public void parseLocationUpdate(long lineNo, long columnNo) Description copied from interface:ParseLocationListener
Signals an update of a parser's progress, indicated by a line and column number. Both line and column number start with value 1 for the first line or column.- Specified by:
parseLocationUpdate
in interfaceParseLocationListener
- Parameters:
lineNo
- The line number, or -1 if none is available.columnNo
- The column number, or -1 if none is available.
-
getLineNo
public long getLineNo()- Returns:
- The last reported line number, -1 if the line number was not available when the location was updated, or 0 if none have been reported.
-
getColumnNo
public long getColumnNo()- Returns:
- The last reported column number, -1 if the column number was not available when the location was updated, or 0 if none have been reported.
-