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 pathIO.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
Fields Modifier and Type Field Description static StringURI_SCHEME_FILE
-
Constructor Summary
Constructors Constructor Description ResourceEntityResolver(boolean validate)ResourceEntityResolver(boolean validate, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourceresolveEntity(String publicId, String systemId)org.apache.xerces.xni.parser.XMLInputSourceresolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource)
-
-
-
Field Detail
-
URI_SCHEME_FILE
public static final String URI_SCHEME_FILE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceEntityResolver
public ResourceEntityResolver(boolean validate)
-
ResourceEntityResolver
public ResourceEntityResolver(boolean validate, ClassLoader classLoader)
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXException
-
resolveEntity
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource) throws org.apache.xerces.xni.XNIException- Specified by:
resolveEntityin interfaceorg.apache.xerces.xni.parser.XMLEntityResolver- Throws:
org.apache.xerces.xni.XNIException
-
-