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
ConstructorsConstructorDescriptionCreate a new xml resolver -
Method Summary
Modifier and TypeMethodDescriptionprotected URLlocateEntity(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
nullif not found - Throws:
IOException
-
resolveEntity
public Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) throws XMLStreamException - Specified by:
resolveEntityin interfaceXMLResolver- Throws:
XMLStreamException
-