Matra DTD Parser 0.8b

com.conradroche.matra.data
Class CursorLocation

java.lang.Object
  |
  +--com.conradroche.matra.data.CursorLocation

public class CursorLocation
extends Object

Class to hold the location of the read cursor within the data.

Author:
Conrad Roche

Constructor Summary
CursorLocation(int row, int clm, int offset)
          CursorLocation Constructor.
 
Method Summary
 int getColumn()
          Returns the column number of the cursor.
 int getOffset()
          Returns the offset from the beginning of the data stream.
 int getRow()
          Returns the row number of the cursor.
 String toString()
          Returns a string representation of the cursor location.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CursorLocation

public CursorLocation(int row,
                      int clm,
                      int offset)
CursorLocation Constructor.
Parameters:
row - The row number.
clm - The column number.
offset - The offset from the start of the data.
Method Detail

getRow

public int getRow()
Returns the row number of the cursor.
Returns:
The row number.

getColumn

public int getColumn()
Returns the column number of the cursor.
Returns:
The column number.

getOffset

public int getOffset()
Returns the offset from the beginning of the data stream.
Returns:
The offset.

toString

public String toString()
Returns a string representation of the cursor location.
Overrides:
toString in class Object
Returns:
String reporesentation of the location.

Matra DTD Parser 0.8b