Package scriptella.driver.ldap.ldif
Class TrackingLineIterator
java.lang.Object
scriptella.expression.LineIterator
scriptella.driver.ldap.ldif.TrackingLineIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<String>
Line iterator which tracks read lines.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
ConstructorsConstructorDescriptionTrackingLineIterator(Reader in, ParametersCallback callback) Creates instance of line iterator. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringApplies additional formatting to the line read.voidStarts to track lines.Methods inherited from class scriptella.expression.LineIterator
close, getLineAt, hasNext, next, remove, skipMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
TrackingLineIterator
Creates instance of line iterator.- Parameters:
in- a reader to wrap.callback- callback to use for variables substitution.
-
-
Method Details
-
format
Description copied from class:LineIteratorApplies additional formatting to the line read.May be overriden by decorators.
- Overrides:
formatin classLineIterator- Parameters:
line- line of text, nulls allowed.- Returns:
- formatted line.
-
getTrackedLines
- Returns:
- read lines after calling the
trackLines().
-
trackLines
public void trackLines()Starts to track lines.The previously tracked content is cleared.
- See Also:
-