org.exist.util
Class XMLReaderObjectFactory
java.lang.Object
org.apache.commons.pool.BasePoolableObjectFactory
org.exist.util.XMLReaderObjectFactory
- All Implemented Interfaces:
- PoolableObjectFactory
public class XMLReaderObjectFactory
- extends BasePoolableObjectFactory
Factory to create new XMLReader objects on demand. The factory is used
by XMLReaderPool
.
- Author:
- wolf
VALIDATION_UNKNOWN
public static final int VALIDATION_UNKNOWN
- See Also:
- Constant Field Values
VALIDATION_ENABLED
public static final int VALIDATION_ENABLED
- See Also:
- Constant Field Values
VALIDATION_AUTO
public static final int VALIDATION_AUTO
- See Also:
- Constant Field Values
VALIDATION_DISABLED
public static final int VALIDATION_DISABLED
- See Also:
- Constant Field Values
CONFIGURATION_ENTITY_RESOLVER_ELEMENT_NAME
public static final String CONFIGURATION_ENTITY_RESOLVER_ELEMENT_NAME
- See Also:
- Constant Field Values
CONFIGURATION_CATALOG_ELEMENT_NAME
public static final String CONFIGURATION_CATALOG_ELEMENT_NAME
- See Also:
- Constant Field Values
CONFIGURATION_ELEMENT_NAME
public static final String CONFIGURATION_ELEMENT_NAME
- See Also:
- Constant Field Values
VALIDATION_MODE_ATTRIBUTE
public static final String VALIDATION_MODE_ATTRIBUTE
- See Also:
- Constant Field Values
PROPERTY_VALIDATION_MODE
public static final String PROPERTY_VALIDATION_MODE
- See Also:
- Constant Field Values
CATALOG_RESOLVER
public static final String CATALOG_RESOLVER
- See Also:
- Constant Field Values
CATALOG_URIS
public static final String CATALOG_URIS
- See Also:
- Constant Field Values
GRAMMER_POOL
public static final String GRAMMER_POOL
- See Also:
- Constant Field Values
FEATURES_VALIDATION_SCHEMA
public static final String FEATURES_VALIDATION_SCHEMA
- See Also:
- Constant Field Values
PROPERTIES_INTERNAL_GRAMMARPOOL
public static final String PROPERTIES_INTERNAL_GRAMMARPOOL
- See Also:
- Constant Field Values
PROPERTIES_LOAD_EXT_DTD
public static final String PROPERTIES_LOAD_EXT_DTD
- See Also:
- Constant Field Values
PROPERTIES_ENTITYRESOLVER
public static final String PROPERTIES_ENTITYRESOLVER
- See Also:
- Constant Field Values
XMLReaderObjectFactory
public XMLReaderObjectFactory(BrokerPool pool)
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject
in interface PoolableObjectFactory
- Specified by:
makeObject
in class BasePoolableObjectFactory
- Throws:
Exception
- See Also:
BasePoolableObjectFactory.makeObject()
createXmlReader
public static XMLReader createXmlReader(int validation,
GrammarPool grammarPool,
eXistXMLCatalogResolver resolver)
throws ParserConfigurationException,
SAXException
- Create Xmlreader and setup validation
- Throws:
ParserConfigurationException
SAXException
convertValidationMode
public static int convertValidationMode(String option)
- Convert configuration text (yes,no,true,false,auto) into a magic number.
setReaderValidationMode
public static void setReaderValidationMode(int validation,
XMLReader xmlReader)
- Setup validation mode of xml reader.
Copyright (C) Wolfgang Meier. All rights reserved.