org.javagroups.log
Class PrintStreamTracer

java.lang.Object
  extended byorg.javagroups.log.Tracer
      extended byorg.javagroups.log.PrintStreamTracer

public class PrintStreamTracer
extends Tracer

Provides output to a PrintStream. All methods defined here have permissions that are either protected or package.


Field Summary
protected  java.io.PrintStream out
           
 
Fields inherited from class org.javagroups.log.Tracer
autoFlush, closed, level, module, timestampFormat
 
Method Summary
protected  void doClose()
          Flushes any pending output (by calling flush) and closes the output stream associated with this tracer.
protected  void doFlush()
          Flushes any pending output.
protected  void doPrint(java.lang.String message)
          Sends the already-formatted message to the output file, stream, writer, or socket associated with this tracer.
 
Methods inherited from class org.javagroups.log.Tracer
close, flush, getAutoFlush, getLevel, getModule, logString, logString, print, print, setAutoFlush, setLevel, setTimestampFormat, timestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.PrintStream out
Method Detail

doPrint

protected void doPrint(java.lang.String message)
Sends the already-formatted message to the output file, stream, writer, or socket associated with this tracer.

Specified by:
doPrint in class Tracer
Parameters:
message - a formatted string

doFlush

protected void doFlush()
Flushes any pending output. Called from flush, but only if not alread closed. This call flushes the print stream of the socket

Specified by:
doFlush in class Tracer

doClose

protected void doClose()
Flushes any pending output (by calling flush) and closes the output stream associated with this tracer. Called from close, but only if not alread closed.

After closed has been called, all calls to print, flush, and close are ignored.

Specified by:
doClose in class Tracer


Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.