|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsav.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)| 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 |
equals, 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 interface Printerprintln in class Statusset(int)public abstract void flush()
flush in interface Printerflush 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||