de.smartics.properties.utils
Class HtmlUtils

Package class diagram package HtmlUtils
java.lang.Object
  extended by de.smartics.properties.utils.HtmlUtils

public final class HtmlUtils
     
     
extends Object

Utilities to deal with HTML.


Constructor Summary
HtmlUtils(String outputEncoding)
          Default constructor.
 
Method Summary
 String clean(String htmlFragment)
          Cleans up the HTML fragment.
 String cleanHtmlAndJavadoc(String htmlFragment)
          Cleans up the HTML fragment and thereby also cleans Javadoc fragments.
 org.jdom.Document cleanJDom(String htmlFragment)
          Cleans up the HTML fragment.
 String getOutputEncoding()
          Returns the encoding used write.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUtils

public HtmlUtils(String outputEncoding)
Default constructor.

Parameters:
outputEncoding - the encoding used write.
Method Detail

getOutputEncoding

public String getOutputEncoding()
Returns the encoding used write.

Returns:
the encoding used write.

cleanHtmlAndJavadoc

public String cleanHtmlAndJavadoc(String htmlFragment)
Cleans up the HTML fragment and thereby also cleans Javadoc fragments.

Parameters:
htmlFragment - the dirty fragment.
Returns:
the cleaned up fragment.

clean

public String clean(String htmlFragment)
Cleans up the HTML fragment.

Parameters:
htmlFragment - the dirty fragment.
Returns:
the cleaned up fragment.

cleanJDom

public org.jdom.Document cleanJDom(String htmlFragment)
Cleans up the HTML fragment.

Parameters:
htmlFragment - the dirty fragment.
Returns:
the cleaned up fragment.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.