Class ResourceEntityResolver
java.lang.Object
de.uni_trier.wi2.procake.utils.io.xerces.ResourceEntityResolver
- All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLEntityResolver
,EntityResolver
public class ResourceEntityResolver
extends Object
implements EntityResolver, org.apache.xerces.xni.parser.XMLEntityResolver
The resource entity resolver loads the grammars from the path
IO.RESOURCE_XML
. The path
must be in the classname. Leading path or URL information in the XML stream are automatically
removed.- Author:
- Rainer Maximini, Thomas Sauer, Maximilian Hoffmann
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceEntityResolver
(boolean validate) ResourceEntityResolver
(boolean validate, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity
(String publicId, String systemId) org.apache.xerces.xni.parser.XMLInputSource
resolveEntity
(org.apache.xerces.xni.XMLResourceIdentifier resource)
-
Field Details
-
URI_SCHEME_FILE
- See Also:
-
-
Constructor Details
-
ResourceEntityResolver
public ResourceEntityResolver(boolean validate) -
ResourceEntityResolver
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
-
resolveEntity
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource) throws org.apache.xerces.xni.XNIException - Specified by:
resolveEntity
in interfaceorg.apache.xerces.xni.parser.XMLEntityResolver
- Throws:
org.apache.xerces.xni.XNIException
-