public class StarEntityResolver extends Object implements EntityResolver
Use getInstance() to obtain an instance of this class without
a parent.
| Constructor and Description |
|---|
StarEntityResolver(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 String |
getLocalResource(String publicId,
String systemId)
Returns a resource name locating the entity referenced by a given
public/system ID pair.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Resolves an entity if it is one of the ones that we keep on hand.
|
public StarEntityResolver(EntityResolver parent)
parent - fallback resolver (may be null)public static StarEntityResolver getInstance()
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity in interface EntityResolverSAXExceptionIOExceptionprotected String getLocalResource(String publicId, String systemId)
null
is returned.systemId - the entity's system IDpublicId - the entity's public IDnull if it is unknownCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.