com.townleyenterprises.trace
Interface TraceStream

All Known Implementing Classes:
FileTraceStream, SystemTraceStream

public interface TraceStream

This interface is implemented by classes which can write trace information. It is a subset of the PrintStream interface.

Since:
3.0
Version:
$Id: TraceStream.java,v 1.1 2004/11/27 17:32:50 atownley Exp $
Author:
Andrew S. Townley

Method Summary
 void close()
          This method closes the trace stream.
 java.io.PrintStream getPrintStream()
          This method returns the print stream associated with this output.
 void print(java.lang.Object message)
          This method writes the message to the trace output, but doesn't include the newline.
 void println(java.lang.Object message)
          This method writes a line to the trace output.
 void printStackTrace(java.lang.Throwable ex)
          This method is used to write an exception's stack trace to the trace output.
 

Method Detail

print

public void print(java.lang.Object message)
This method writes the message to the trace output, but doesn't include the newline.

Parameters:
message - the message to write

println

public void println(java.lang.Object message)
This method writes a line to the trace output.

Parameters:
message - the message to write

printStackTrace

public void printStackTrace(java.lang.Throwable ex)
This method is used to write an exception's stack trace to the trace output.

Parameters:
ex - the exception to print

getPrintStream

public java.io.PrintStream getPrintStream()
This method returns the print stream associated with this output.

Returns:
a PrintStream instance

close

public void close()
This method closes the trace stream.



Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.