Unless you have good reason to use this mechanism you should rather use the
JAXP-based processes. Read the package
documentation for other alternatives.
org.jdom2.input.sax
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | XMLReaderSAX2Factory(boolean
whether to validate against the DocType validate)The required details for SAX2.0-based XMLReader creation. |
| public | XMLReaderSAX2Factory(final boolean
whether to validate against the DocType validate, final String The SAX2.0 Driver classname (null to use the SAX2.0 default parser
searching algorithm - if you specify null you should probably be
using JAXP anyway). saxdriver)The required details for SAX2.0-based XMLReader creation. |
| Modifier and Type | Method and Description |
|---|---|
| public XMLReader | createXMLReader()
Implements org. |
| public String | Returns: The name of the SAX Driver class (null for SAX2 default class).Get the SAX Driver class name used to bootstrap XMLReaders. |
| public boolean | isValidating()
Implements org. |
| saxdriver | back to summary |
|---|---|
| private final String saxdriver | |
| validate | back to summary |
|---|---|
| private final boolean validate | |
| XMLReaderSAX2Factory | back to summary |
|---|---|
| public XMLReaderSAX2Factory(boolean validate) The required details for SAX2.0-based XMLReader creation.
| |
| XMLReaderSAX2Factory | back to summary |
|---|---|
| public XMLReaderSAX2Factory(final boolean validate, final String saxdriver) The required details for SAX2.0-based XMLReader creation.
| |
| createXMLReader | back to summary |
|---|---|
| public XMLReader createXMLReader() throws JDOMException Implements org. Doc from org. Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance. The XMLReader is expected to be a new
instance that is unrelated to any other XMLReaders, and can be reused at
will by
| |
| getDriverClassName | back to summary |
|---|---|
| public String getDriverClassName() Get the SAX Driver class name used to bootstrap XMLReaders.
| |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Implements org. Doc from org. Does an XMLReader from this factory do more than just well-formed checks.
| |