|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.parsers.DocumentBuilder
org.lobobrowser.html.parser.DocumentBuilderImpl
public class DocumentBuilderImpl
The DocumentBuilderImpl class is an HTML
DOM parser that implements the
standard W3C DocumentBuilder interface.
| Constructor Summary | |
|---|---|
DocumentBuilderImpl(HtmlRendererContext rcontext)
Constructs a DocumentBuilderImpl. |
|
DocumentBuilderImpl(UserAgentContext context)
Constructs a DocumentBuilderImpl. |
|
DocumentBuilderImpl(UserAgentContext ucontext,
HtmlRendererContext rcontext)
Constructs a DocumentBuilderImpl. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
createDocument(org.xml.sax.InputSource is)
Creates a document without parsing the input provided, so the document object can be used for incremental rendering. |
org.w3c.dom.DOMImplementation |
getDOMImplementation()
|
org.xml.sax.ErrorHandler |
getErrorHandler()
|
org.xml.sax.EntityResolver |
getResolver()
|
boolean |
isNamespaceAware()
|
boolean |
isValidating()
|
org.w3c.dom.Document |
newDocument()
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
Parses an HTML document. |
void |
setEntityResolver(org.xml.sax.EntityResolver er)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler eh)
|
| Methods inherited from class javax.xml.parsers.DocumentBuilder |
|---|
getSchema, isXIncludeAware, parse, parse, parse, parse, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentBuilderImpl(UserAgentContext context)
DocumentBuilderImpl. This constructor
should be used when only the parsing functionality (without rendering)
is required.
context - An instance of UserAgentContext,
which may be an instance of SimpleUserAgentContext.
public DocumentBuilderImpl(UserAgentContext ucontext,
HtmlRendererContext rcontext)
DocumentBuilderImpl. This constructor
should be used when rendering is expected.
ucontext - An instance of UserAgentContext,
which may be an instance of SimpleUserAgentContext.rcontext - An instance of HtmlRendererContext,
which may be an instance of SimpleHtmlRendererContext.public DocumentBuilderImpl(HtmlRendererContext rcontext)
DocumentBuilderImpl. This constructor
should be used when rendering is expected.
rcontext - An instance of HtmlRendererContext,
which may be an instance of SimpleHtmlRendererContext.| Method Detail |
|---|
public org.w3c.dom.Document parse(org.xml.sax.InputSource is)
throws org.xml.sax.SAXException,
java.io.IOException
Document instance.
parse in class javax.xml.parsers.DocumentBuilderis - The input source, which may be an instance of
InputSourceImpl.
org.xml.sax.SAXException
java.io.IOExceptioncreateDocument(InputSource)
public org.w3c.dom.Document createDocument(org.xml.sax.InputSource is)
throws org.xml.sax.SAXException,
java.io.IOException
is - The input source, which may be an instance of
InputSourceImpl. The input
source must provide either an input stream or a reader.
org.xml.sax.SAXException
java.io.IOExceptionHTMLDocumentImpl.load()public boolean isNamespaceAware()
isNamespaceAware in class javax.xml.parsers.DocumentBuilderpublic boolean isValidating()
isValidating in class javax.xml.parsers.DocumentBuilderpublic void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver in class javax.xml.parsers.DocumentBuilderpublic void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.Document newDocument()
newDocument in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.DOMImplementation getDOMImplementation()
getDOMImplementation in class javax.xml.parsers.DocumentBuilderpublic org.xml.sax.ErrorHandler getErrorHandler()
public org.xml.sax.EntityResolver getResolver()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||