|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsav.z.Status
sav.z.LineStatus
sav.z.WLineStatus
Prints Session's current scriptline/dataline.
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\")");
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 sav.z.LineStatus |
clear, getNumber, set, set, setInfo, setLogInterval |
| Methods inherited from class sav.z.Status |
date, get, useDate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WLineStatus(java.io.PrintWriter pw)
PrintWriter.
By default all the line numbers are printed.
public WLineStatus(java.io.PrintWriter pw,
int logInterval)
PrintWriter with
logInterval.
logInterval - quantity of lines for those only first line number
is printed| Method Detail |
public void println(java.lang.String s)
s string.
println in interface Printerprintln in class LineStatusLineStatus.set(int)public void flush()
flush in interface Printerflush in class LineStatusLineStatus.clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||