All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jclark.xml.tok.Position

java.lang.Object
   |
   +----com.jclark.xml.tok.Position

public final class Position
extends Object
implements Cloneable
Represents a position in an entity. A position can be modified by Encoding.movePosition.

See Also:
movePosition

Constructor Index

 o Position()
Creates a position for the start of an entity: the line number is 1 and the column number is 0.

Method Index

 o clone()
Returns a copy of this position.
 o getColumnNumber()
Returns the column number.
 o getLineNumber()
Returns the line number.

Constructors

 o Position
 public Position()
Creates a position for the start of an entity: the line number is 1 and the column number is 0.

Methods

 o getLineNumber
 public int getLineNumber()
Returns the line number. The first line number is 1.

 o getColumnNumber
 public int getColumnNumber()
Returns the column number. The first column number is 0. A tab character is not treated specially.

 o clone
 public Object clone()
Returns a copy of this position.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index