|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.xml.DTDResolver
SAX entity resolver that associates public IDs to URLs of their appropriate DTD specifications. For example, DTD may be stored in a JAR file (as a resource); then, the URL of the DTD will be the JAR URL pointing to that resource. When the SAX parser encounters XML document with this public ID, it will be able to resolve and load the DTD, and then validate the document.
Constructor Summary | |
DTDResolver()
Creates a new DTD resolver with no ID to URL associations. |
|
DTDResolver(java.lang.String pubID,
java.net.URL dtdUrl)
Creates a new DTD resolver with the specified ID to URL association. |
Method Summary | |
void |
addMapping(java.lang.String pubID,
java.net.URL dtdUrl)
Adds a specified ID to URL association to the mapping. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String pubID,
java.lang.String sysID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DTDResolver()
public DTDResolver(java.lang.String pubID, java.net.URL dtdUrl)
pubID
- the public IDdtdUrl
- the URL of the DTD associated with that public IDMethod Detail |
public void addMapping(java.lang.String pubID, java.net.URL dtdUrl)
pubID
- the public IDdtdUrl
- the URL of the DTD associated with that public IDpublic org.xml.sax.InputSource resolveEntity(java.lang.String pubID, java.lang.String sysID) throws org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |