org.apache.commons.latka
Class HtmlPrettyPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.apache.commons.latka.HtmlPrettyPrintWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class HtmlPrettyPrintWriter
extends PrintWriter

Provides more attractive HTML formatting for the runtime output of Latka. The characters printed during test execution ("." for success, "F" for failure, "E" for error, "S" for skipped) will be color coded, and a tag will be inserted roughly every five characters to allow for line wrapping.

Version:
$Revision: 155424 $
Author:
Morgan Delagrange, dIon Gillard (javadocs)
See Also:
XMLReporter.setPrintWriter(PrintWriter)

Field Summary
protected  int _charsWritten
          number of characters written by the writer
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HtmlPrettyPrintWriter(Writer writer)
          Create a HtmlPrettyPrintWriter wrapping an existing writer sends output to the wrapped writer
 
Method Summary
 void print(String output)
          Write a string to the wrapped writer format it specially as per the class definition
 
Methods inherited from class java.io.PrintWriter
append, append, append, append, append, append, append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_charsWritten

protected int _charsWritten
number of characters written by the writer

Constructor Detail

HtmlPrettyPrintWriter

public HtmlPrettyPrintWriter(Writer writer)
Create a HtmlPrettyPrintWriter wrapping an existing writer sends output to the wrapped writer

Parameters:
writer - any java.io.Writer
Method Detail

print

public void print(String output)
Write a string to the wrapped writer format it specially as per the class definition

Overrides:
print in class PrintWriter
Parameters:
output - a String to be written


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.