|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.jdom.input.DOMBuilder
DOMBuilder builds a JDOM tree using DOM.
Note that this class should only be used for building from a pre-existing
DOM tree. The class can be used to build from files, streams, etc but
other builders like SAXBuilder can perform the task faster because
they don't create a DOM tree first.
| Constructor Summary | |
DOMBuilder()
This creates a new DOMBuilder which will attempt to first locate a parser via JAXP, then will try to use a set of default parsers. |
|
DOMBuilder(boolean validate)
Deprecated. Deprecated in Beta 9, DOMBuilder shouldn't be used for building from files and that's the only time validation matters |
|
DOMBuilder(java.lang.String adapterClass)
This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. |
|
DOMBuilder(java.lang.String adapterClass,
boolean validate)
Deprecated. Deprecated in Beta 9, DOMBuilder shouldn't be used for building from files and that's the only time validation matters |
|
| Method Summary | |
Document |
build(org.w3c.dom.Document domDocument)
This will build a JDOM tree from an existing DOM tree. |
Element |
build(org.w3c.dom.Element domElement)
This will build a JDOM Element from an existing DOM Element |
Document |
build(java.io.File file)
Deprecated. Deprecated in Beta 7,
should be used for building from any input other than a
DOM tree |
Document |
build(java.io.InputStream in)
Deprecated. Deprecated in Beta 7,
should be used for building from any input other than a
DOM tree |
Document |
build(java.net.URL url)
Deprecated. Deprecated in Beta 7,
should be used for building from any input other than a
DOM tree |
void |
setFactory(JDOMFactory factory)
|
void |
setValidation(boolean validate)
Deprecated. Deprecated in Beta 9, DOMBuilder shouldn't be used for building from files and that's the only time validation matters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMBuilder()
public DOMBuilder(boolean validate)
validate - boolean indicating if
validation should occur.public DOMBuilder(java.lang.String adapterClass)
adapterClass - String name of class
to use for DOM building.
public DOMBuilder(java.lang.String adapterClass,
boolean validate)
adapterClass - String name of class
to use for DOM building.validate - boolean indicating if
validation should occur.| Method Detail |
public void setFactory(JDOMFactory factory)
public void setValidation(boolean validate)
validate - boolean indicating whether validation
should occur.
public Document build(java.io.InputStream in)
throws JDOMException
SAXBuilder
should be used for building from any input other than a
DOM tree
in - InputStream to read from.
Document - resultant Document object.
JDOMException - when errors occur in parsing.
public Document build(java.io.File file)
throws JDOMException
SAXBuilder
should be used for building from any input other than a
DOM tree
file - File to read from.
Document - resultant Document object.
JDOMException - when errors occur in parsing.
public Document build(java.net.URL url)
throws JDOMException
SAXBuilder
should be used for building from any input other than a
DOM tree
url - URL to read from.
Document - resultant Document object.
JDOMException - when errors occur in parsing.public Document build(org.w3c.dom.Document domDocument)
domDocument - org.w3c.dom.Document object
Document - JDOM document object.public Element build(org.w3c.dom.Element domElement)
domElement - org.w3c.dom.Element object
Element - JDOM Element object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||