ca.idms.io
Class TraceStream

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

public class TraceStream
extends AbstractTraceOutput

Encapsulates a PrintStream 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.PrintStream out
          The underlying output stream.
 
Fields inherited from class ca.idms.io.AbstractTraceOutput
identify, line, product
 
Constructor Summary
TraceStream(java.io.PrintStream os)
          Creates a TraceStream object on top of a PrintStream.
TraceStream(java.io.PrintStream os, boolean id)
          Creates a TraceStream object on top of a PrintStream
 
Method Summary
 void println(java.lang.String s)
          Prints a line to the trace stream.
 
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.PrintStream out
The underlying output stream.

Constructor Detail

TraceStream

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

Parameters:
os - the output stream

TraceStream

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

Parameters:
os - the output stream
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 stream.

Parameters:
s - the string to print


Copyright © 2009 CA, All rights reserved