|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.xml.XMLEntityResolver
public class XMLEntityResolver
An XMLEntityResolver resolves entities.
Constructor Summary | |
---|---|
XMLEntityResolver()
Initializes the resolver. |
Method Summary | |
---|---|
void |
addExternalEntity(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
Adds an external entity. |
void |
addInternalEntity(java.lang.String name,
java.lang.String value)
Adds an internal entity. |
java.io.Reader |
getEntity(StdXMLReader xmlReader,
java.lang.String name)
Returns a Java reader containing the value of an entity. |
boolean |
isExternalEntity(java.lang.String name)
Returns true if an entity is external. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLEntityResolver()
Method Detail |
---|
public void addInternalEntity(java.lang.String name, java.lang.String value)
name
- the name of the entity.value
- the value of the entity.public void addExternalEntity(java.lang.String name, java.lang.String publicID, java.lang.String systemID)
name
- the name of the entity.publicID
- the public ID of the entity, which may be null.systemID
- the system ID of the entity.public java.io.Reader getEntity(StdXMLReader xmlReader, java.lang.String name) throws XMLParseException
xmlReader
- the current XML readername
- the name of the entity.
XMLParseException
public boolean isExternalEntity(java.lang.String name)
name
- the name of the entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |