jodd.lagarto.dom
Class LagartoDOMBuilder

java.lang.Object
  extended by jodd.lagarto.dom.LagartoDOMBuilder

public class LagartoDOMBuilder
extends java.lang.Object

Lagarto DOM builder creates DOM tree from HTML or XML content. XML parsing has the following differences:


Field Summary
protected  boolean parsingHtml
           
 
Constructor Summary
LagartoDOMBuilder()
           
 
Method Summary
 boolean isParsingHtml()
           
 Document parse(java.nio.CharBuffer content)
          Creates DOM tree from the provided content.
 Document parse(java.lang.CharSequence content)
          Creates DOM tree from provided content.
protected  Document parse(LagartoParser lagarto)
           
 void setParsingHtml(boolean parsingHtml)
          Specifies if content is parsed as HTML (default, true) or XML (false).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsingHtml

protected boolean parsingHtml
Constructor Detail

LagartoDOMBuilder

public LagartoDOMBuilder()
Method Detail

isParsingHtml

public boolean isParsingHtml()

setParsingHtml

public void setParsingHtml(boolean parsingHtml)
Specifies if content is parsed as HTML (default, true) or XML (false).


parse

public Document parse(java.lang.CharSequence content)
Creates DOM tree from provided content.


parse

public Document parse(java.nio.CharBuffer content)
Creates DOM tree from the provided content.


parse

protected Document parse(LagartoParser lagarto)


Copyright © 2003-2011 Jodd Team