|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.util.StarEntityResolver
public class StarEntityResolver
Provides specialised XML entity resolution. This resolver knows about some entities which starjava applications are likely to want to retrieve; it keeps copies of them so that no network connection is required for them.
Use getInstance()
to obtain an instance of this class without
a parent.
Constructor Summary | |
---|---|
StarEntityResolver(org.xml.sax.EntityResolver parent)
Constructs a resolver which will resolve entities this class knows about, and for those it doesn't it will defer resolution to a supplied parent resolver. |
Method Summary | |
---|---|
static StarEntityResolver |
getInstance()
Returns the sole instance of this class. |
protected java.lang.String |
getLocalResource(java.lang.String publicId,
java.lang.String systemId)
Returns a resource name locating the entity referenced by a given public/system ID pair. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolves an entity if it is one of the ones that we keep on hand. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StarEntityResolver(org.xml.sax.EntityResolver parent)
parent
- fallback resolver (may be null)Method Detail |
---|
public static StarEntityResolver getInstance()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
protected java.lang.String getLocalResource(java.lang.String publicId, java.lang.String systemId)
systemId
- the entity's system IDpublicId
- the entity's public ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |