Package org.web3d.vrml.sav
Interface DocumentLocator
- All Known Implementing Classes:
DefaultLocator
,DefaultLocator
public interface DocumentLocator
Callback into the parser to ask for information about where we are in the
parsing process.
If a parser supports Locators, it must at least support line numbers. Column numbers are optional.
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the current column number at the end of the last processing event.int
Get the current line number of the last event processing step.
-
Method Details
-
getColumnNumber
int getColumnNumber()Get the current column number at the end of the last processing event. If column number support is not provided, this should always return -1.- Returns:
- The column number of the last processing event
-
getLineNumber
int getLineNumber()Get the current line number of the last event processing step. If the last processing step takes more than one line, this is the first line of the processing that called the callback event.- Returns:
- The line number of the last processing step.
-