net.n3.nanoxml
Interface IXMLEntityResolver
- SAXEntityResolver, XMLEntityResolver
public interface IXMLEntityResolver
An IXMLEntityResolver resolves entities.
$Name: RELEASE_2_2_1 $, $Revision: 1.4 $ void | addExternalEntity(String name, String publicID, String systemID)- Adds an external entity.
|
void | addInternalEntity(String name, String value)- Adds an internal entity.
|
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.
|
addExternalEntity
public void addExternalEntity(String name,
String publicID,
String systemID) Adds an external entity.
name - the name of the entity.publicID - the public ID of the entity, which may be null.systemID - the system ID of the entity.
addInternalEntity
public void addInternalEntity(String name,
String value) Adds an internal entity.
name - the name of the entity.value - the value of the entity.
getEntity
public Reader getEntity(IXMLReader xmlReader,
String name)
throws XMLParseException Returns a Java reader containing the value of an entity.
xmlReader - the current NanoXML reader.name - the name of the entity.
- the reader, or null if the entity could not be resolved.
isExternalEntity
public boolean isExternalEntity(String name)
Returns true if an entity is external.
name - the name of the entity.