org.e2etrace.formatter
Class PlainTextTraceFormatter

java.lang.Object
  extended by org.e2etrace.formatter.AbstractTraceFormatter
      extended by org.e2etrace.formatter.PlainTextTraceFormatter
All Implemented Interfaces:
ITraceFormatter

public class PlainTextTraceFormatter
extends AbstractTraceFormatter

Plain text trace formatter.

This formatter generates plain text and can be used to print trace trees to stdout.

Author:
Gunther Popp

Constructor Summary
PlainTextTraceFormatter()
          Default constructor.
 
Method Summary
protected  String formatSingleStep(ITraceStep step, int level)
          CALL-BACK: Generate formatted output for a single trace step.
protected  void writeFooter(ITraceSession session, Writer toWriter)
          CALL-BACK: Write the footer of the trace output.
protected  void writeHeader(ITraceSession session, Writer toWriter)
          CALL-BACK: Write the header of the trace output.
 
Methods inherited from class org.e2etrace.formatter.AbstractTraceFormatter
format, getNewLine, writeSteps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextTraceFormatter

public PlainTextTraceFormatter()
Default constructor.

Method Detail

formatSingleStep

protected String formatSingleStep(ITraceStep step,
                                  int level)
CALL-BACK: Generate formatted output for a single trace step.

Specified by:
formatSingleStep in class AbstractTraceFormatter
Parameters:
step - trace step
level - current call level (starting with 0)
Returns:
formatted output

writeFooter

protected void writeFooter(ITraceSession session,
                           Writer toWriter)
CALL-BACK: Write the footer of the trace output.

Specified by:
writeFooter in class AbstractTraceFormatter
Parameters:
session - trace session
toWriter - output writer

writeHeader

protected void writeHeader(ITraceSession session,
                           Writer toWriter)
CALL-BACK: Write the header of the trace output.

Specified by:
writeHeader in class AbstractTraceFormatter
Parameters:
session - trace session
toWriter - output writer


Copyright © 2013 Gunther Popp. All Rights Reserved.