ca.idms.io
Class TraceWriter

java.lang.Object
  extended by ca.idms.io.AbstractTraceOutput
      extended by ca.idms.io.TraceWriter
All Implemented Interfaces:
TraceOutput

public class TraceWriter
extends AbstractTraceOutput

Encapsulates a PrintWriter in a TraceOutput implementation.

Since:
CA IDMS Server 5.0
Version:
2.00, 09/26/02
Author:
Dave Ross
See Also:
TraceOutput

Field Summary
protected  java.io.PrintWriter out
          The underlying output writer.
 
Fields inherited from class ca.idms.io.AbstractTraceOutput
identify, line, product
 
Constructor Summary
TraceWriter(java.io.PrintWriter os)
          Creates a TraceWriter object on top of a PrintWriter.
TraceWriter(java.io.PrintWriter os, boolean id)
          Creates a TraceStream object on top of a PrintWriter
 
Method Summary
 void println(java.lang.String s)
          Prints a line to the trace writer.
 
Methods inherited from class ca.idms.io.AbstractTraceOutput
format, println
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.PrintWriter out
The underlying output writer.

Constructor Detail

TraceWriter

public TraceWriter(java.io.PrintWriter os)
Creates a TraceWriter object on top of a PrintWriter. Each line is identified with a prefix.

Parameters:
os - the output writer

TraceWriter

public TraceWriter(java.io.PrintWriter os,
                   boolean id)
Creates a TraceStream object on top of a PrintWriter

Parameters:
os - the output writer
id - enables an identifying prefix in each line if true
Method Detail

println

public void println(java.lang.String s)
Prints a line to the trace writer.

Parameters:
s - the string to print


Copyright © 2009 CA, All rights reserved