public class Entity extends ElementImpl { // Constructors public void saveEntity(XMLOutputStream o) throws IOException; // Methods public Object getAttribute(Name attName); public Enumeration getAttributes(); public Name getName(); public Name getTagName(); public void save(XMLOutputStream o) throws IOException; public void setText(String text); }
This class implements an Entity object representing an XML internal or external entity as defined in the XML Document Type Definition (DTD).
ElementImpl | +--Entity
public void saveEntity(XMLOutputStream o) throws IOException;Saves the entity to the given output stream.
Parameter Description o The output stream. Exceptions
>IOException if there is a problem writing to the output stream.
public Object getAttribute(Name attName);
public Enumeration getAttributes();
public Name getName();Retrieves the name of the entity.
Return Value
Returns the Name object containing the entity name.
public Name getTagName();
public void save(XMLOutputStream o) throws IOException;Saves the entity to the given output stream with indenting and new lines.
Parameter Description o The output stream. Exceptions
>IOException if there is a problem writing to the output stream.
public void setText(String text);Changes the text of entity.
Parameter Description text The new text of the entity.