org.brownell.xml
Class OracleDriver
java.lang.Object
|
+--org.xml.sax.helpers.ConfigurableParserAdapter
|
+--org.brownell.xml.OracleDriver
- public class OracleDriver
- extends org.xml.sax.helpers.ConfigurableParserAdapter
This is a wrapper around the oracle.xml.parser.v2.SAXParser
SAX 1.0 parser, implementing 1-June-1999 draft SAX2 interfaces.
The standardized SAX2 facilities exposed by this parser include all
SAX 1.0 features, as well as a number of additional features and
properties identified by standardized URIs. Those features (but not
the associated URIs) are summarized below.
Name |
Type |
Notes |
validation |
Feature |
Defaults to false; may be set to true |
external-general-entities |
Feature |
Value is fixed at true |
external-parameter-entities |
Feature |
Value is fixed at true |
namespaces |
Feature |
Value is fixed at false |
normalize-text |
Feature |
Value is fixed at false |
use-locator |
Feature |
Value is fixed at true |
None of the new SAX2 handlers is supported.
- Version:
- 1.0 (2 September 1999)
- Author:
- David Brownell (db@post.harvard.edu)
Constructor Summary |
OracleDriver()
Constructs a parser which by default does not validate. |
Method Summary |
boolean |
getFeature(java.lang.String featureId)
SAX2: Tells whether this parser supports the specified feature. |
void |
setFeature(java.lang.String featureId,
boolean state)
SAX2: Sets the state of features supported in this parser. |
Methods inherited from class org.xml.sax.helpers.ConfigurableParserAdapter |
getProperty,
parse,
parse,
setDocumentHandler,
setDTDHandler,
setEntityResolver,
setErrorHandler,
setLocale,
setProperty |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
OracleDriver
public OracleDriver()
- Constructs a parser which by default does not validate.
getFeature
public boolean getFeature(java.lang.String featureId)
throws org.xml.sax.SAXException
- SAX2: Tells whether this parser supports the specified feature.
At this time, this directly parallels the underlying parser, except
that the use of validation can be enabled or disabled.
- Throws:
- org.xml.sax.SAXException - as defined in the specification for
org.xml.sax.Configurable.getFeature()
- Overrides:
- getFeature in class org.xml.sax.helpers.ConfigurableParserAdapter
setFeature
public void setFeature(java.lang.String featureId,
boolean state)
throws org.xml.sax.SAXException
- SAX2: Sets the state of features supported in this parser.
- Throws:
- org.xml.sax.SAXException - as defined in the specification for
org.xml.sax.Configurable.setFeature()
- Overrides:
- setFeature in class org.xml.sax.helpers.ConfigurableParserAdapter