Class TraceFileWriter

  • All Implemented Interfaces:
    Tracer.Writer

    public class TraceFileWriter
    extends java.lang.Object
    implements Tracer.Writer
    Writes trace to file.
    • Constructor Summary

      Constructors 
      Constructor Description
      TraceFileWriter​(java.io.File fl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endTrace​(java.lang.String epilog)  
      void startTrace​(java.lang.String prolog, java.util.Properties props)
      Begins trace writing.
      void writeMessage​(java.lang.String msg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TraceFileWriter

        public TraceFileWriter​(java.io.File fl)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • startTrace

        public void startTrace​(java.lang.String prolog,
                               java.util.Properties props)
                        throws java.io.IOException,
                               java.lang.IllegalStateException
        Description copied from interface: Tracer.Writer
        Begins trace writing.
        Specified by:
        startTrace in interface Tracer.Writer
        Parameters:
        prolog - Prologue string.
        props - Conf properties.
        Throws:
        java.io.IOException
        java.lang.IllegalStateException
      • writeMessage

        public void writeMessage​(java.lang.String msg)
                          throws java.io.IOException,
                                 java.lang.IllegalStateException
        Specified by:
        writeMessage in interface Tracer.Writer
        Throws:
        java.io.IOException
        java.lang.IllegalStateException
      • endTrace

        public void endTrace​(java.lang.String epilog)
                      throws java.io.IOException,
                             java.lang.IllegalStateException
        Specified by:
        endTrace in interface Tracer.Writer
        Throws:
        java.io.IOException
        java.lang.IllegalStateException