|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Channel
is a buffered writing device for a
Log
.
Method Summary | |
Channel |
back()
Decrements an indent which is manifested after successive newlines. |
void |
out()
Writes a newline, flushes the buffer contents, and resets the stream. |
Channel |
over()
Increments an indent which is manifested after successive newlines. |
Channel |
quote(Object msg)
Writes a message enclosed in double quotations. |
Channel |
spc()
Writes a single space. |
Channel |
stripe(char c,
int n)
Writes the given char n number of
times. |
void |
time()
The time() method is functionally similar to the
out() method; the contents of the buffer are
flushed to the parent Log . |
void |
touch()
The touch() method is useful for stopping a timed
Channel but not writing anything to it. |
Channel |
write(boolean msg)
Writes a boolean . |
Channel |
write(char msg)
Writes a char . |
Channel |
write(int msg)
Writes an int . |
Channel |
write(Object msg)
Writes an Object . |
Channel |
write(String msg)
Writes a String . |
Channel |
writeln()
Writes a newline character. |
Method Detail |
public Channel write(Object msg)
Object
.public Channel write(boolean msg)
boolean
.public Channel write(char msg)
char
.public Channel write(int msg)
int
.public Channel write(String msg)
String
.public Channel spc()
public Channel quote(Object msg)
public Channel stripe(char c, int n)
char
n
number of
times.public Channel writeln()
public Channel over()
public Channel back()
public void time()
time()
method is functionally similar to the
out()
method; the contents of the buffer are
flushed to the parent Log
. However, a timer is
started which runs until the next use of the
Channel
, at which point the elapsed time is
printed to the Log
.public void touch()
touch()
method is useful for stopping a timed
Channel but not writing anything to it. Often,
time()
and touch()
invocations come
in pairs.public void out()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |