org.brownell.xml
Class OracleDriver
java.lang.Object
|
+--org.xml.sax.helpers.ParserAdapter
|
+--org.brownell.xml.OracleDriver
- public class OracleDriver
- extends ParserAdapter
This is a wrapper around the oracle.xml.parser.v2.SAXParser
SAX1 parser, implementing SAX2 interfaces.
The standardized SAX2 facilities exposed by this parser include all
SAX1 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 |
Notes |
Features ... URL prefix is
http://xml.org/sax/features/ |
(URL)/external-general-entities |
Value is fixed at true |
(URL)/external-parameter-entities |
Value is fixed at true |
(URL)/namespaces |
Value defaults to true |
(URL)/namespace-prefixes |
Value defaults at false |
(URL)/validation |
Defaults to false; may be set to true |
None of the new SAX2 properties is supported.
- Version:
- $Date: 2000/05/29 12:12:04 $
- Author:
- David Brownell
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.ParserAdapter |
characters,
endDocument,
endElement,
getContentHandler,
getDTDHandler,
getEntityResolver,
getErrorHandler,
getProperty,
ignorableWhitespace,
parse,
parse,
processingInstruction,
setContentHandler,
setDocumentLocator,
setDTDHandler,
setEntityResolver,
setErrorHandler,
setProperty,
startDocument,
startElement |
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 SAXNotRecognizedException,
SAXNotSupportedException
- 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.
- Overrides:
- getFeature in class ParserAdapter
- Tags copied from class: ParserAdapter
- Parameters:
name
- The feature name, as a complete URI.- Returns:
- The current feature state.
- Throws:
- SAXNotRecognizedException - If the feature
name is not known.
- SAXNotSupportedException - If querying the
feature state is not supported.
- See Also:
XMLReader.setFeature(java.lang.String, boolean)
setFeature
public void setFeature(java.lang.String featureId,
boolean state)
throws SAXNotRecognizedException,
SAXNotSupportedException
- SAX2: Sets the state of features supported in this parser.
- Overrides:
- setFeature in class ParserAdapter
- Tags copied from class: ParserAdapter
- Parameters:
name
- The feature name, as a complete URI.state
- The requested feature state.- Throws:
- SAXNotRecognizedException - If the feature
name is not known.
- SAXNotSupportedException - If the feature
state is not supported.
- See Also:
XMLReader.setFeature(java.lang.String, boolean)