au.id.jericho.lib.html
Class RowColumnVector
java.lang.Object
au.id.jericho.lib.html.RowColumnVector
public final class RowColumnVector
extends java.lang.Object
Represents the row and column number of a character position in the source document.
Obtained using the
Source.getRowColumnVector(int pos)
method.
int | getColumn() - Returns the column number of this character position in the source document.
|
int | getPos() - Returns the character position in the source document.
|
int | getRow() - Returns the row number of this character position in the source document.
|
String | toString() - Returns a string representation of this character position.
|
getColumn
public int getColumn()
Returns the column number of this character position in the source document.
- the column number of this character position in the source document.
getPos
public int getPos()
Returns the character position in the source document.
- the character position in the source document.
getRow
public int getRow()
Returns the row number of this character position in the source document.
- the row number of this character position in the source document.
toString
public String toString()
Returns a string representation of this character position.
The returned string has the format "
(row,column:pos)
".
- a string representation of this character position.