|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.util.AbstractXMLEntityResolver
Abstract implementation of an entity resolver for XML files. Supports a series of internally supported public or system identities, allowing implementers to support particular identities and direct them to local copies of the DTD for example.
Field Summary | |
protected static Localiser |
LOCALISER
Localiser for messages. |
protected java.util.HashMap |
publicIdEntities
Map of public identity entities supported. |
protected java.util.HashMap |
systemIdEntities
Map of system identity entities supported. |
Constructor Summary | |
AbstractXMLEntityResolver()
|
Method Summary | |
protected org.xml.sax.InputSource |
getLocalInputSource(java.lang.String publicId,
java.lang.String systemId,
java.lang.String localPath)
Accessor for the input source for a path. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Method to resolve XML entities. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Localiser LOCALISER
protected java.util.HashMap publicIdEntities
protected java.util.HashMap systemIdEntities
Constructor Detail |
public AbstractXMLEntityResolver()
Method Detail |
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- The public id.systemId
- The system id.
org.xml.sax.SAXException
EntityResolver.resolveEntity(java.lang.String,java.lang.String)
protected org.xml.sax.InputSource getLocalInputSource(java.lang.String publicId, java.lang.String systemId, java.lang.String localPath) throws java.io.FileNotFoundException
publicId
- Public identitysystemId
- System identitylocalPath
- The local path
java.io.FileNotFoundException
- if the local file is not accessible
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |