| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jdom.input.DOMBuilder
DOMBuilder builds a JDOM tree using DOM.
| Constructor Summary | |
DOMBuilder()
This creates a DOMBuilder with
   the default parser and no validation. | 
|
DOMBuilder(boolean validate)
This sets validation for the Builder. | 
|
DOMBuilder(java.lang.String adapterClass)
This sets the DOM Adapter class to use, and leaves validation off.  | 
|
DOMBuilder(java.lang.String adapterClass,
           boolean validate)
This allows the validation features to be turned on/off in the builder at creation, as well as set the DOM Adapter class to use.  | 
|
| 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)
This builds a document from the supplied filename by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.  | 
 Document | 
build(java.io.InputStream in)
This builds a document from the supplied input stream by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.  | 
 Document | 
build(java.net.URL url)
This builds a document from the supplied URL by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.  | 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
| Constructor Detail | 
public DOMBuilder(java.lang.String adapterClass,
                  boolean validate)
This allows the validation features to be turned on/off in the builder at creation, as well as set the DOM Adapter class to use.
adapterClass - String name of class
                     to use for DOM building.validate - boolean indicating if
                 validation should occur.public DOMBuilder(java.lang.String adapterClass)
This sets the DOM Adapter class to use, and leaves validation off.
validate - boolean indicating if
                 validation should occur.public DOMBuilder(boolean validate)
 This sets validation for the Builder.
 
validate - boolean indicating if
                 validation should occur.public DOMBuilder()
 This creates a DOMBuilder with
   the default parser and no validation.
 
| Method Detail | 
public Document build(java.io.InputStream in)
               throws JDOMException
This builds a document from the supplied input stream by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
in - InputStream to read from.Document - resultant Document object.JDOMException - when errors occur in
                                    parsing.
public Document build(java.io.File file)
               throws JDOMException
This builds a document from the supplied filename by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
file - File to read from.Document - resultant Document object.JDOMException - when errors occur in
                                    parsing.
public Document build(java.net.URL url)
               throws JDOMException
This builds a document from the supplied URL by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
url - URL to read from.Document - resultant Document object.JDOMException - when errors occur in
                                    parsing.public Document build(org.w3c.dom.Document domDocument)
This will build a JDOM tree from an existing DOM tree.
domDocument - org.w3c.dom.Document objectDocument - JDOM document object.public Element build(org.w3c.dom.Element domElement)
This will build a JDOM Element from an existing DOM Element
domElement -  org.w3c.dom.Element objectElement - JDOM Element object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||