|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.boylesoftware.cb2.util.LocalResourceEntityResolver
This entity resolver allows to access local copies of DTDs referred from XML configuration files. The DTDs are stored in a class resources.
Constructor Summary | |
LocalResourceEntityResolver(java.lang.Class baseClass,
java.lang.String[] entities)
Constructs a resolver. |
Method Summary | |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
The interface method implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalResourceEntityResolver(java.lang.Class baseClass, java.lang.String[] entities)
baseClass
- class. which has the DTDs as its resources.entities
- list of known entities and their local resource
paths. The even elements of the array are entity public
identifiers, the odd elements are DTD URLs.Method Detail |
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- public id of the entity to resolve.systemId
- system id of the entity to resolve.
null
if the
entity is unknown to this resolver and the system id should be
used to resolve it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |