sqlg2.db
Class TraceDebug

java.lang.Object
  extended by sqlg2.db.Debug
      extended by sqlg2.db.TraceDebug

public class TraceDebug
extends Debug

Implementation for Debug - outputs to log file.


Field Summary
 
Fields inherited from class sqlg2.db.Debug
err, out
 
Constructor Summary
TraceDebug(java.io.File errorFile)
           
TraceDebug(java.lang.String errorFile)
           
 
Method Summary
protected  void close()
          Releases all resources (open files etc).
 void doError(java.lang.String s)
          Outputs error message.
protected  java.io.PrintWriter doGetWriter()
           
 void doPrintStackTrace(java.lang.Throwable th)
          Outputs error stacktrace.
 void doTrace(java.lang.String s)
          Outputs debug trace.
protected  void finalize()
           
 
Methods inherited from class sqlg2.db.Debug
error, getDebug, getWriter, printStackTrace, setDebug, setStdStreams, trace
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceDebug

public TraceDebug(java.lang.String errorFile)

TraceDebug

public TraceDebug(java.io.File errorFile)
Method Detail

doTrace

public void doTrace(java.lang.String s)
Description copied from class: Debug
Outputs debug trace.

Specified by:
doTrace in class Debug

doError

public void doError(java.lang.String s)
Description copied from class: Debug
Outputs error message.

Specified by:
doError in class Debug

doPrintStackTrace

public void doPrintStackTrace(java.lang.Throwable th)
Description copied from class: Debug
Outputs error stacktrace.

Specified by:
doPrintStackTrace in class Debug

doGetWriter

protected java.io.PrintWriter doGetWriter()
Specified by:
doGetWriter in class Debug

close

protected void close()
Description copied from class: Debug
Releases all resources (open files etc).

Specified by:
close in class Debug

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable