org.mmbase.util
Class XMLEntityResolver
java.lang.Object
|
+--org.mmbase.util.XMLEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- public class XMLEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
Take the systemId and converts it into a local file, using the MMBase config path
- Version:
- $Revision: 1.11 $ $Date: 2001/10/18 11:05:08 $
- Author:
- Gerard van Enk
|
Method Summary |
boolean |
canResolve()
Returns whether the resolver has enough environmental information to resolve the DTD. |
java.lang.String |
getDTDPath()
|
boolean |
hasDTD()
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
takes the systemId and returns the local location of the dtd |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLEntityResolver
public XMLEntityResolver()
- empty constructor
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- takes the systemId and returns the local location of the dtd
- Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
canResolve
public boolean canResolve()
- Returns whether the resolver has enough environmental information to resolve the DTD.
- Returns:
- whether the resolver can resolve DTDs
hasDTD
public boolean hasDTD()
- Returns:
- whether the resolver has determiend a DTD
getDTDPath
public java.lang.String getDTDPath()
- Returns:
- The actually used path to the DTD
MMBase 2002