org.ow2.clif.util
Class XMLEntityResolver

java.lang.Object
  extended by org.ow2.clif.util.XMLEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class XMLEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

Entity resolver for XML parsing. Relies on the application class loader to get resources (typically DTD specification files embedded in CLIF's runtime jar). Understands "classpath:", "file://" and empty prefixes. Handles cases where the XML parser adds current working directory to relative paths.

Author:
Bruno Dillenseger

Field Summary
static java.lang.String CLASSPATH_SCHEME
           
static java.lang.String FILE_SCHEME
           
 
Constructor Summary
XMLEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSPATH_SCHEME

public static final java.lang.String CLASSPATH_SCHEME
See Also:
Constant Field Values

FILE_SCHEME

public static final java.lang.String FILE_SCHEME
See Also:
Constant Field Values
Constructor Detail

XMLEntityResolver

public XMLEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver