org.jcoderz.commons.doclet
Class HtmlCleaner

java.lang.Object
  extended by org.jcoderz.commons.doclet.HtmlCleaner

public class HtmlCleaner
extends Object

This class provides an easy interface to jTidy to clean up html fragments as used within javadoc.

Author:
Andreas Mandel

Constructor Summary
HtmlCleaner()
           
 
Method Summary
 String clean(CharSequence in)
          Converts the given HTML fragment string into wellformed xhtml.
 String getWarnings()
          Returns the warnings encountered during last clean.
 boolean hasErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCleaner

public HtmlCleaner()
Method Detail

clean

public String clean(CharSequence in)
Converts the given HTML fragment string into wellformed xhtml.

Parameters:
in - the html fragment to be cleaned up.
Returns:
a cleaned up wellformed xhtml version of the in string.

getWarnings

public String getWarnings()
Returns the warnings encountered during last clean.

Returns:
the warnings encountered during last clean.

hasErrors

public boolean hasErrors()


Copyright 2007 The jCoderZ Project.