public class TrackingLineIterator extends LineIterator
Constructor and Description |
---|
TrackingLineIterator(java.io.Reader in,
ParametersCallback callback)
Creates instance of line iterator.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
format(java.lang.String line)
Applies additional formatting to the line read.
|
java.lang.String |
getTrackedLines() |
void |
trackLines()
Starts to track lines.
|
close, getLineAt, hasNext, next, remove, skip
public TrackingLineIterator(java.io.Reader in, ParametersCallback callback)
in
- a reader to wrap.callback
- callback to use for variables substitution.protected java.lang.String format(java.lang.String line)
LineIterator
May be overriden by decorators.
format
in class LineIterator
line
- line of text, nulls allowed.public java.lang.String getTrackedLines()
trackLines()
.public void trackLines()
The previously tracked content is cleared.
getTrackedLines()
Copyright © Copyright 2006-2019 The Scriptella Project Team.