Package net.n3.nanoxml
Interface IXMLEntityResolver
- All Known Implementing Classes:
SAXEntityResolver
,XMLEntityResolver
public interface IXMLEntityResolver
An IXMLEntityResolver resolves entities.
- Author:
- Marc De Scheemaecker
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExternalEntity
(String name, String publicID, String systemID) Adds an external entity.void
addInternalEntity
(String name, String value) Adds an internal entity.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.
-
Method Details
-
addInternalEntity
Adds an internal entity.- Parameters:
name
- the name of the entity.value
- the value of the entity.
-
addExternalEntity
Adds 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.
-
getEntity
Returns a Java reader containing the value of an entity.- Parameters:
xmlReader
- the current NanoXML reader.name
- the name of the entity.- Returns:
- the reader, or null if the entity could not be resolved.
- Throws:
XMLParseException
- If an exception occurred while resolving the entity.
-
isExternalEntity
Returns true if an entity is external.- Parameters:
name
- the name of the entity.
-