org.codehaus.cargo.module
Class XmlEntityResolver
java.lang.Object
org.codehaus.cargo.module.XmlEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- public class XmlEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
Implementation of the SAX EntityResolver interface that looks up the web-app
DTDs from the JAR.
- Version:
- $Id: Dtd.java 359 2005-05-10 07:39:02Z vmassol $
Method Summary |
java.lang.String |
getDtdFileName(java.lang.String thePublicId,
java.lang.String theSystemId)
Tries to decide the file name of a DTD from the public and system id. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String thePublicId,
java.lang.String theSystemId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlEntityResolver
public XmlEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String thePublicId,
java.lang.String theSystemId)
throws org.xml.sax.SAXException,
java.io.IOException
-
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
- See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)
getDtdFileName
public java.lang.String getDtdFileName(java.lang.String thePublicId,
java.lang.String theSystemId)
- Tries to decide the file name of a DTD from the public and system id.
- Parameters:
thePublicId
- the publid idtheSystemId
- the system id
- Returns:
- the file name
Copyright © 2004-2008 Codehaus. All Rights Reserved.