public class StarEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
Use getInstance()
to obtain an instance of this class without
a parent.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public StarEntityResolver(org.xml.sax.EntityResolver parent)
parent
- fallback resolver (may be null)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