public class XmlLineNumber extends XmlCursor.XmlBookmark
XmlOptions.setLoadLineNumbers()
_currentMark, _ref
Constructor and Description |
---|
XmlLineNumber(int line)
Constructs a line number with no column or offset information.
|
XmlLineNumber(int line,
int column)
Constructs a line number and column with no file offset information.
|
XmlLineNumber(int line,
int column,
int offset)
Constructs a line number and column with no file offset information.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the 1-based column number, or -1 if not known.
|
int |
getLine()
Returns the 1-based line number, or -1 if not known.
|
int |
getOffset()
Returns the 0-based file offset number, or -1 if not known.
|
createCursor, getKey, toBookmark
public XmlLineNumber(int line)
line
- the line number - the first line is 1public XmlLineNumber(int line, int column)
line
- the line number - the first line is 1line
- the column number - the first column is 1public XmlLineNumber(int line, int column, int offset)
line
- the line number - the first line is 1line
- the column number - the first column is 1line
- the file character offset - the first character in the file is 0