net.n3.nanoxml
public class XMLEntityResolver extends Object implements IXMLEntityResolver
Version: $Name: RELEASE_2_2_1 $, $Revision: 1.4 $
Constructor Summary | |
---|---|
XMLEntityResolver()
Initializes the resolver. |
Method Summary | |
---|---|
void | addExternalEntity(String name, String publicID, String systemID)
Adds an external entity.
|
void | addInternalEntity(String name, String value)
Adds an internal entity.
|
protected void | finalize()
Cleans up the object when it's destroyed. |
Reader | getEntity(IXMLReader xmlReader, String name)
Returns a Java reader containing the value of an entity.
|
boolean | isExternalEntity(String name)
Returns true if an entity is external.
|
protected Reader | openExternalEntity(IXMLReader xmlReader, String publicID, String systemID)
Opens an external entity.
|
Parameters: name the name of the entity. publicID the public ID of the entity, which may be null. systemID the system ID of the entity.
Parameters: name the name of the entity. value the value of the entity.
Parameters: xmlReader the current XML reader name the name of the entity.
Returns: the reader, or null if the entity could not be resolved.
Parameters: name the name of the entity.
Parameters: xmlReader the current XML reader publicID the public ID, which may be null systemID the system ID
Returns: the reader, or null if the reader could not be created/opened