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 Details

  • Constructor Details

    • ResourceEntityResolver

      public ResourceEntityResolver(boolean validate)
    • ResourceEntityResolver

      public ResourceEntityResolver(boolean validate, ClassLoader classLoader)
  • Method Details

    • resolveEntity

      public InputSource resolveEntity(String publicId, String systemId)
      Specified by:
      resolveEntity in interface EntityResolver
    • 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 interface org.apache.xerces.xni.parser.XMLEntityResolver
      Throws:
      org.apache.xerces.xni.XNIException