it.eng.spagobi.commons.utilities
Class JTidyHTMLHandler

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.JTidyHTMLHandler

public class JTidyHTMLHandler
extends java.lang.Object


Constructor Summary
JTidyHTMLHandler()
           
 
Method Summary
protected  java.lang.String getBody(org.w3c.dom.Element rawDoc)
          Gets the body text of the HTML document.
 java.lang.String getContent(java.io.InputStream is)
           
protected  java.lang.String getText(org.w3c.dom.Node node)
          Extracts text from the DOM node.
protected  java.lang.String getTitle(org.w3c.dom.Element rawDoc)
          Gets the title text of the HTML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTidyHTMLHandler

public JTidyHTMLHandler()
Method Detail

getContent

public java.lang.String getContent(java.io.InputStream is)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getTitle

protected java.lang.String getTitle(org.w3c.dom.Element rawDoc)
Gets the title text of the HTML document.

Returns:
the title text

getBody

protected java.lang.String getBody(org.w3c.dom.Element rawDoc)
Gets the body text of the HTML document.

Returns:
the body text

getText

protected java.lang.String getText(org.w3c.dom.Node node)
Extracts text from the DOM node.

Parameters:
node - a DOM node
Returns:
the text value of the node