com.atlassian.renderer.wysiwyg
Class HtmlParserUtil

java.lang.Object
  extended by com.atlassian.renderer.wysiwyg.HtmlParserUtil

public abstract class HtmlParserUtil
extends Object

Utility class for using NekoHTML http://people.apache.org/~andyc/neko/doc/html/index.html


Constructor Summary
HtmlParserUtil(InputStream in)
           
HtmlParserUtil(String xhtml)
           
 
Method Summary
 Node findTag(String name)
           
 Document getDocument()
           
 DocumentFragment getDocumentFragment()
           
 String getText(Node node)
           
protected abstract  void init(org.cyberneko.html.parsers.DOMFragmentParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlParserUtil

public HtmlParserUtil(String xhtml)
               throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

HtmlParserUtil

public HtmlParserUtil(InputStream in)
Method Detail

getDocumentFragment

public DocumentFragment getDocumentFragment()

getDocument

public Document getDocument()

init

protected abstract void init(org.cyberneko.html.parsers.DOMFragmentParser parser)

findTag

public Node findTag(String name)

getText

public String getText(Node node)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.