Package ca.phon.xml
Class ClasspathXMLEntityResolver
java.lang.Object
ca.phon.xml.ClasspathXMLEntityResolver
- All Implemented Interfaces:
XMLResolver
XML entity resolver that will look for catalog files
using the provided ClassLoader
. The catalog
files must be in the location "xml/catalog.cat".
-
Constructor Summary
ConstructorDescriptionCreate a new xml resolver -
Method Summary
Modifier and TypeMethodDescriptionprotected URL
locateEntity
(String systemID) Returns the entity URL for the given systemID.resolveEntity
(String publicID, String systemID, String baseURI, String namespace)
-
Constructor Details
-
ClasspathXMLEntityResolver
public ClasspathXMLEntityResolver()Create a new xml resolver -
ClasspathXMLEntityResolver
-
-
Method Details
-
locateEntity
Returns the entity URL for the given systemID.- Parameters:
systemID
-- Returns:
- location of entity, or
null
if not found - Throws:
IOException
-
resolveEntity
public Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) throws XMLStreamException - Specified by:
resolveEntity
in interfaceXMLResolver
- Throws:
XMLStreamException
-