|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Builder defines the standard interface for
all builders. A Builder is responsible for
taking an input (in various formats) and creating a
Document object from that input. This interface
defines the contract for the mandatory inputs that must be
supported.
| Method Summary | |
Document |
build(java.io.File file)
This builds a document from the supplied filename. |
Document |
build(java.io.InputStream in)
This builds a document from the supplied input stream. |
Document |
build(java.net.URL url)
This builds a document from the supplied URL. |
| Method Detail |
public Document build(java.io.InputStream in)
throws JDOMException
This builds a document from the supplied input stream. By default, validation does not occur.
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.
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.
url - URL to read from.Document - resultant Document object.JDOMException - when errors occur in
parsing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||