|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.xml.ConfiguredXMLReaderFactory
public class ConfiguredXMLReaderFactory
INTERNAL: A factory for creating configured SAX2 XMLReaders.
The XML readers created by this factory will have their error handler, entity resolver and dtd handler properties set to the values defined on the factory. If the property on the factory is null the property on the XML reader will not be set at all.
Field Summary | |
---|---|
protected org.xml.sax.DTDHandler |
dtd_handler
|
protected org.xml.sax.EntityResolver |
entity_resolver
|
protected org.xml.sax.ErrorHandler |
error_handler
|
protected java.util.Map |
features
|
protected java.util.Map |
properties
|
protected XMLReaderFactoryIF |
xrfactory
|
Constructor Summary | |
---|---|
ConfiguredXMLReaderFactory()
|
|
ConfiguredXMLReaderFactory(XMLReaderFactoryIF xrfactory)
|
Method Summary | |
---|---|
org.xml.sax.XMLReader |
createXMLReader()
INTERNAL: Creates a new SAX2 XMLReader object using the nested factory and configures the object created before returning it. |
org.xml.sax.DTDHandler |
getDTDHandler()
INTERNAL: Gets the DTD handler that all XMLReaders should have set when created. |
org.xml.sax.EntityResolver |
getEntityResolver()
INTERNAL: Gets the entity resolver that all XMLReaders should have set when created. |
org.xml.sax.ErrorHandler |
getErrorHandler()
INTERNAL: Gets the error handler that all XMLReaders should have set when created. |
boolean |
getFeature(java.lang.String uri)
INTERNAL: Returns the value of a SAX 2.0 feature as it will be set in new XMLReaders created by this factory. |
java.lang.Object |
getProperty(java.lang.String uri)
INTERNAL: Returns the value of a SAX 2.0 property as it will be set in new XMLReaders created by this factory. |
void |
setDTDHandler(org.xml.sax.DTDHandler dtd_handler)
INTERNAL: Sets the DTD handler that all XMLReaders should have set when created. |
void |
setEntityResolver(org.xml.sax.EntityResolver entity_resolver)
INTERNAL: Sets the entity resolver that all XMLReaders should have set when created. |
void |
setErrorHandler(org.xml.sax.ErrorHandler error_handler)
INTERNAL: Sets the error handler that all XMLReaders should have set when created. |
void |
setFeature(java.lang.String uri,
boolean state)
INTERNAL: Sets a SAX 2.0 feature to the value all XMLReaders should have when created by this factory. |
void |
setProperty(java.lang.String uri,
java.lang.Object value)
INTERNAL: Sets a SAX 2.0 property to the value all XMLReaders should have when created by this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XMLReaderFactoryIF xrfactory
protected org.xml.sax.ErrorHandler error_handler
protected org.xml.sax.EntityResolver entity_resolver
protected org.xml.sax.DTDHandler dtd_handler
protected java.util.Map features
protected java.util.Map properties
Constructor Detail |
---|
public ConfiguredXMLReaderFactory()
public ConfiguredXMLReaderFactory(XMLReaderFactoryIF xrfactory)
Method Detail |
---|
public org.xml.sax.ErrorHandler getErrorHandler()
public void setErrorHandler(org.xml.sax.ErrorHandler error_handler)
public org.xml.sax.EntityResolver getEntityResolver()
public void setEntityResolver(org.xml.sax.EntityResolver entity_resolver)
public org.xml.sax.DTDHandler getDTDHandler()
public void setDTDHandler(org.xml.sax.DTDHandler dtd_handler)
public boolean getFeature(java.lang.String uri) throws org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotRecognizedException
- Thrown when asked for a feature
that has not been set.public void setFeature(java.lang.String uri, boolean state)
public java.lang.Object getProperty(java.lang.String uri)
public void setProperty(java.lang.String uri, java.lang.Object value)
public org.xml.sax.XMLReader createXMLReader() throws org.xml.sax.SAXException
createXMLReader
in interface XMLReaderFactoryIF
org.xml.sax.SAXException
- Thrown if there are any problems either
creating the reader or configuring it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |