scriptella.driver.ldap.ldif
Class TrackingLineIterator

java.lang.Object
  extended by scriptella.expression.LineIterator
      extended by scriptella.driver.ldap.ldif.TrackingLineIterator
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<java.lang.String>

public class TrackingLineIterator
extends scriptella.expression.LineIterator

Line iterator which tracks read lines.

Version:
1.0
Author:
Fyodor Kupolov

Constructor Summary
TrackingLineIterator(java.io.Reader in, scriptella.spi.ParametersCallback callback)
          Creates instance of line iterator.
 
Method Summary
protected  java.lang.String format(java.lang.String line)
           
 java.lang.String getTrackedLines()
           
 void trackLines()
          Starts to track lines.
 
Methods inherited from class scriptella.expression.LineIterator
close, getLineAt, hasNext, next, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackingLineIterator

public TrackingLineIterator(java.io.Reader in,
                            scriptella.spi.ParametersCallback callback)
Creates instance of line iterator.

Parameters:
in - a reader to wrap.
callback - callback to use for variables substitution.
Method Detail

format

protected java.lang.String format(java.lang.String line)
Overrides:
format in class scriptella.expression.LineIterator

getTrackedLines

public java.lang.String getTrackedLines()
Returns:
read lines after calling the trackLines().

trackLines

public void trackLines()
Starts to track lines.

The previously tracked content is cleared.

See Also:
getTrackedLines()


Copyright © Copyright 2006-2009 The Scriptella Project Team.