biz.c24.io.api.presentation.stream
Class BorderedCharDataReader.CharDataLocator

java.lang.Object
  extended by biz.c24.io.api.presentation.stream.DataReader.Locator
      extended by biz.c24.io.api.presentation.stream.BorderedCharDataReader.CharDataLocator
All Implemented Interfaces:
Cloneable
Enclosing class:
BorderedCharDataReader

public class BorderedCharDataReader.CharDataLocator
extends DataReader.Locator

The location in charachter stream representation class.

Provides the coordinates of location in charachter stream.


Field Summary
 
Fields inherited from class biz.c24.io.api.presentation.stream.DataReader.Locator
HASH_PRIME
 
Constructor Summary
BorderedCharDataReader.CharDataLocator(int offset, int line, int column)
          Constructs the location with absolute offset, line & column number.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int getColumn()
          Returns the column number.
 int getLine()
          Returns the line number.
 int hashCode()
          Returns a hash code value for this instance.
protected  void reset()
           
 String toString()
          Returns a string representation of this instance.
protected  void update(int length)
          Updates location coordinates on specified position delta.
 
Methods inherited from class biz.c24.io.api.presentation.stream.DataReader.Locator
clone, getOffset
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BorderedCharDataReader.CharDataLocator

public BorderedCharDataReader.CharDataLocator(int offset,
                                              int line,
                                              int column)
Constructs the location with absolute offset, line & column number.

Parameters:
offset - The absolute offset in charachter stream.
line - The line number in charachter stream.
column - The column number in charachter stream.
Method Detail

reset

protected void reset()
Overrides:
reset in class DataReader.Locator

getLine

public final int getLine()
Returns the line number.

Returns:
The line nuber.

getColumn

public final int getColumn()
Returns the column number.

Returns:
The column nuber.

hashCode

public int hashCode()
Returns a hash code value for this instance.

Overrides:
hashCode in class DataReader.Locator
Returns:
a hash code value for this object.
See Also:
equals(Object), Hashtable

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class DataReader.Locator
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false - otherwise.
See Also:
hashCode(), Hashtable

toString

public String toString()
Returns a string representation of this instance.

Overrides:
toString in class DataReader.Locator
Returns:
a string representation of location.

update

protected void update(int length)
Updates location coordinates on specified position delta.

Overrides:
update in class DataReader.Locator
Parameters:
length - The delta between carrent and past location.


C24 Technologies © 2002-2012: All Rights Reserved.