org.apache.commons.latka
Class HtmlPrettyPrintWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended byorg.apache.commons.latka.HtmlPrettyPrintWriter

public class HtmlPrettyPrintWriter
extends java.io.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(java.io.Writer writer)
          Create a HtmlPrettyPrintWriter wrapping an existing writer sends output to the wrapped writer
 
Method Summary
 void print(java.lang.String output)
          Write a string to the wrapped writer format it specially as per the class definition
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, 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(java.io.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(java.lang.String output)
Write a string to the wrapped writer format it specially as per the class definition

Parameters:
output - a String to be written


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.