|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jdom.input.SAXBuilder
SAXBuilder builds a JDOM tree using SAX.
| Constructor Summary | |
SAXBuilder()
This creates a SAXBuilder with
the default SAX driver and no validation. |
|
SAXBuilder(boolean validate)
This sets validation for the Builder. |
|
SAXBuilder(java.lang.String saxDriverClass)
This sets the SAX Driver class to use, and leaves validation off. |
|
SAXBuilder(java.lang.String saxDriverClass,
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(java.io.File file)
This builds a document from the supplied filename. |
protected Document |
build(org.xml.sax.InputSource in)
This builds a document from the supplied input source. |
Document |
build(java.io.InputStream in)
This builds a document from the supplied input stream. |
Document |
build(java.io.InputStream in,
java.lang.String systemId)
This builds a document from the supplied input stream. |
Document |
build(java.io.Reader characterStream)
This builds a document from the supplied Reader. |
Document |
build(java.io.Reader characterStream,
java.lang.String SystemId)
This builds a document from the supplied Reader. |
Document |
build(java.lang.String systemId)
This builds a document from the supplied URI. |
Document |
build(java.net.URL url)
This builds a document from the supplied URL. |
protected java.net.URL |
fileToURL(java.io.File f)
Imitation of File.toURL(), a JDK 1.2 method, reimplemented here to work with JDK 1.1. |
void |
setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
This sets custom DTDHandler for the Builder. |
void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
This sets custom EntityResolver for the Builder. |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
This sets custom ErrorHandler for the Builder. |
void |
setValidation(boolean validate)
This sets validation for the Builder. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SAXBuilder(java.lang.String saxDriverClass,
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.
saxDriverClass - String name of SAX Driver
to use for parsing.validate - boolean indicating if
validation should occur.public SAXBuilder(java.lang.String saxDriverClass)
This sets the SAX Driver class to use, and leaves validation off.
saxDriverClass - String name of SAX Driver
to use for parsing.public SAXBuilder(boolean validate)
This sets validation for the Builder.
validate - boolean indicating if
validation should occur.public SAXBuilder()
This creates a SAXBuilder with
the default SAX driver and no validation.
| Method Detail |
public void setValidation(boolean validate)
This sets validation for the Builder.
errorHandler - boolean indicating whether validation should occur.public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
This sets custom ErrorHandler for the Builder.
errorHandler - ErrorHandlerpublic void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
This sets custom EntityResolver for the Builder.
entityResolver - EntityResolverpublic void setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
This sets custom DTDHandler for the Builder.
dtdHandler - DTDHandler
protected Document build(org.xml.sax.InputSource in)
throws JDOMException
This builds a document from the supplied input source.
in - InputSource to read from.Document - resultant Document object.JDOMException - when errors occur in
parsing.
public Document build(java.io.InputStream in)
throws JDOMException
This builds a document from the supplied input stream.
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.
public Document build(java.io.InputStream in,
java.lang.String systemId)
throws JDOMException
This builds a document from the supplied input stream.
in - InputStream to read from.systemId - base for resolving relative URIsDocument - resultant Document object.JDOMException - when errors occur in
parsing.
public Document build(java.io.Reader characterStream)
throws JDOMException
This builds a document from the supplied Reader.
in - Reader to read from.Document - resultant Document object.JDOMException - when errors occur in
parsing.
public Document build(java.io.Reader characterStream,
java.lang.String SystemId)
throws JDOMException
This builds a document from the supplied Reader.
in - Reader to read from.systemId - base for resolving relative URIsDocument - resultant Document object.JDOMException - when errors occur in
parsing.
public Document build(java.lang.String systemId)
throws JDOMException
This builds a document from the supplied URI.
systemId - URI for the inputDocument - resultant Document object.JDOMException - when errors occur in
parsing.
protected java.net.URL fileToURL(java.io.File f)
throws java.net.MalformedURLException
f - the file to convertFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||