com.starbase.diff
Class LineIterator

java.lang.Object
  |
  +--com.starbase.diff.LineIterator

public class LineIterator
extends java.lang.Object

This class iterates over characters in a line. It actually iterates from the back forward.


Constructor Summary
LineIterator(CharSequence sequence, int flags, ColumnMask[] mask)
           
 
Method Summary
 boolean hasNext()
          return true if there are more chars available to be read.
 int index()
          Returns the underlying CharSequence index of the last char retrieved.
 char nextChar()
          Returns the next char in the underlying sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineIterator

public LineIterator(CharSequence sequence,
                    int flags,
                    ColumnMask[] mask)
Method Detail

hasNext

public boolean hasNext()
return true if there are more chars available to be read.


nextChar

public char nextChar()
Returns the next char in the underlying sequence.


index

public int index()
Returns the underlying CharSequence index of the last char retrieved. Returns -1 if nextChar() has not been called.



StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.