|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Sav.Z.Status
|
+--Sav.Z.LineStatus
A tool for logging a Session's Status namely a current Script line or a out data line.
Extending of LineStatus may differ from extending of Status only in use of a logInterval variable. See code of WLineStatus.
package Sav.Z;
import java.io.*;
public class WLineStatus extends LineStatus {
PrintWriter pw;
public WLineStatus(PrintWriter pw) {
this.pw = pw;
}
public WLineStatus(PrintWriter pw, int logInterval) {
this.pw = pw;
setLogInterval(logInterval);
}
public void println(String s) {
pw.println(s);
}
public void flush() {
pw.flush();
}
}
Session.setScriptLineStatus(Sav.Z.LineStatus),
Session.setDataLineStatus(Sav.Z.LineStatus)| Fields inherited from class Sav.Z.Status |
content |
| Constructor Summary | |
LineStatus()
|
|
| Method Summary | |
void |
clear()
Clears a current Status value and calls flush(). |
abstract void |
flush()
Flushes (releases) printable area. |
int |
getNumber()
Returns a current line number. |
abstract void |
println(java.lang.String s)
Prints line of s string. |
void |
set(int number)
Sets a current line number and calls println(). |
void |
set(java.lang.String s)
Sets a current line number and calls println(). |
void |
setInfo(java.lang.String info)
Sets up a String information that printed (logged) with
a line number at left. |
void |
setLogInterval(int logInterval)
Sets up an interval of line number printing (logging). |
| Methods inherited from class Sav.Z.Status |
date, get, useDate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineStatus()
| Method Detail |
public abstract void println(java.lang.String s)
s string.
The set() method calls println().println in class Statusset(int)public abstract void flush()
flush in class Statusclear()public void setLogInterval(int logInterval)
logInterval - quantity of lines for those only first line number
is printedpublic void setInfo(java.lang.String info)
String information that printed (logged) with
a line number at left.public void set(int number)
println(java.lang.String)public void set(java.lang.String s)
set in class Statusprintln(java.lang.String)public int getNumber()
public void clear()
clear in class Statusflush()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||