| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SAXBuilder
builds a JDOM tree using SAX.
Constructor Summary | |
SAXBuilder() Creates a new SAXBuilder which will attempt to first locate a parser via JAXP, then will try to use a set of default SAX Drivers. | |
SAXBuilder(boolean validate) Creates a new SAXBuilder which will attempt to first locate a parser via JAXP, then will try to use a set of default SAX Drivers. | |
SAXBuilder(String saxDriverClass) Creates a new SAXBuilder using the specified SAX parser. | |
SAXBuilder(String saxDriverClass, boolean validate) Creates a new SAXBuilder using the specified SAX parser. |
Method Summary | |
Document | build(InputStream in) This builds a document from the supplied input stream. |
Document | build(File file) This builds a document from the supplied filename. |
Document | build(URL url) This builds a document from the supplied URL. |
Document | build(InputStream in, String systemId) This builds a document from the supplied input stream. |
Document | build(Reader characterStream) This builds a document from the supplied Reader. |
Document | build(Reader characterStream, String SystemId) This builds a document from the supplied Reader. |
Document | build(String systemId) This builds a document from the supplied URI. |
void | setDTDHandler(DTDHandler dtdHandler) This sets custom DTDHandler for the Builder . |
void | setEntityResolver(EntityResolver entityResolver) This sets custom EntityResolver for the Builder . |
void | setErrorHandler(ErrorHandler errorHandler) This sets custom ErrorHandler for the Builder . |
void | setValidation(boolean validate) This sets validation for the builder. |
void | setXMLFilter(XMLFilter xmlFilter) This sets custom XMLFilter for the Builder . |
Constructor Detail |
public SAXBuilder()
Creates a new SAXBuilder which will attempt to first locate a parser via JAXP, then will try to use a set of default SAX Drivers. The underlying parser will not validate.
public SAXBuilder(boolean validate)
Creates a new SAXBuilder which will attempt to first locate a parser via JAXP, then will try to use a set of default SAX Drivers. The underlying parser will validate or not according to the given parameter.
boolean
indicating if
validation should occur.public SAXBuilder(String saxDriverClass)
Creates a new SAXBuilder using the specified SAX parser. The underlying parser will not validate.
String
name of SAX Driver
to use for parsing.public SAXBuilder(String saxDriverClass, boolean validate)
Creates a new SAXBuilder using the specified SAX parser. The underlying parser will validate or not according to the given parameter.
String
name of SAX Driver
to use for parsing.boolean
indicating if
validation should occur.Method Detail |
public Document build(InputStream in)
throws org.jdom.JDOMException
This builds a document from the supplied input stream.
InputStream
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(File file)
throws org.jdom.JDOMException
This builds a document from the supplied filename.
File
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(URL url)
throws org.jdom.JDOMException
This builds a document from the supplied URL.
URL
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(InputStream in, String systemId)
throws org.jdom.JDOMException
This builds a document from the supplied input stream.
InputStream
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(Reader characterStream)
throws org.jdom.JDOMException
This builds a document from the supplied Reader.
Reader
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(Reader characterStream, String SystemId)
throws org.jdom.JDOMException
This builds a document from the supplied Reader.
Reader
to read from.Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public Document build(String systemId)
throws org.jdom.JDOMException
This builds a document from the supplied URI.
Document
- resultant Document object.JDOMException
- when errors occur in
parsing.public void setDTDHandler(DTDHandler dtdHandler)
This sets custom DTDHandler for the Builder
.
DTDHandler
public void setEntityResolver(EntityResolver entityResolver)
This sets custom EntityResolver for the Builder
.
EntityResolver
public void setErrorHandler(ErrorHandler errorHandler)
This sets custom ErrorHandler for the Builder
.
ErrorHandler
public void setValidation(boolean validate)
This sets validation for the builder.
boolean
indicating whether validation
should occur.public void setXMLFilter(XMLFilter xmlFilter)
This sets custom XMLFilter for the Builder
.
XMLFilter
Association Links |
to Class java.lang.String
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |