Sav.Z
Class WLineStatus
java.lang.Object
|
+--Sav.Z.Status
|
+--Sav.Z.LineStatus
|
+--Sav.Z.WLineStatus
- All Implemented Interfaces:
- Printer
- public class WLineStatus
- extends LineStatus
Prints Session's current scriptline/dataline to
a PrintWriter.
We can set up WStatus in Session for data line control as follows.
Session ss = new Session();
PrintWriter pw = new PrintWriter(new FileWriter("MyControl.log"));
LineStatus ls = new WLineStatus(pw);
ls.setLogInterval(10);
ss.setDataLineStatus(ls);
ls.setInfo("data1: line number: ");
ss.z("$readTable($file \"data1\")");
- See Also:
Session.setScriptLineStatus(Sav.Z.LineStatus),
Session.setDataLineStatus(Sav.Z.LineStatus)
|
Constructor Summary |
WLineStatus(java.io.PrintWriter pw)
Constructs a LineStatus printed to a PrintWriter. |
WLineStatus(java.io.PrintWriter pw,
int logInterval)
Constructs a LineStatus printed to a PrintWriter with
logInterval. |
|
Method Summary |
void |
flush()
Flushes printable buffer area. |
void |
println(java.lang.String s)
Prints line of s string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WLineStatus
public WLineStatus(java.io.PrintWriter pw)
- Constructs a LineStatus printed to a
PrintWriter.
By default all the line numbers are printed.
WLineStatus
public WLineStatus(java.io.PrintWriter pw,
int logInterval)
- Constructs a LineStatus printed to a
PrintWriter with
logInterval.
- Parameters:
logInterval - quantity of lines for those only first line number
is printed
println
public void println(java.lang.String s)
- Prints line of
s string.
- Overrides:
println in class LineStatus
- Following copied from class:
Sav.Z.LineStatus
- See Also:
LineStatus.set(int)
flush
public void flush()
- Flushes printable buffer area.
- Overrides:
flush in class LineStatus
- Following copied from class:
Sav.Z.LineStatus
- See Also:
LineStatus.clear()