org.ow2.clif.util
Class XMLEntityResolver
java.lang.Object
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
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 |
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
XMLEntityResolver
public XMLEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver