org.apache.commons.latka
Class HtmlPrettyPrintWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
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 |
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 |
_charsWritten
protected int _charsWritten
- number of characters written by the writer
HtmlPrettyPrintWriter
public HtmlPrettyPrintWriter(Writer writer)
- Create a HtmlPrettyPrintWriter wrapping an existing writer
sends output to the wrapped writer
- Parameters:
writer
- any java.io.Writer
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.