|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.n3.nanoxml.XMLEntityResolver
public class XMLEntityResolver
An XMLEntityResolver resolves entities.
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLEntityResolver()
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void addInternalEntity(String name,
String value)
addInternalEntity in interface IXMLEntityResolvername - the name of the entity.value - the value of the entity.
public void addExternalEntity(String name,
String publicID,
String systemID)
addExternalEntity in interface IXMLEntityResolvername - the name of the entity.publicID - the public ID of the entity, which may be null.systemID - the system ID of the entity.
public Reader getEntity(IXMLReader xmlReader,
String name)
throws XMLParseException
getEntity in interface IXMLEntityResolverxmlReader - the current XML readername - the name of the entity.
XMLParseException - If an exception occurred while resolving the entity.public boolean isExternalEntity(String name)
isExternalEntity in interface IXMLEntityResolvername - the name of the entity.
protected Reader openExternalEntity(IXMLReader xmlReader,
String publicID,
String systemID)
throws XMLParseException
xmlReader - the current XML readerpublicID - the public ID, which may be nullsystemID - the system ID
XMLParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||