All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.jclark.xml.parse.awt.Parser

public interface Parser
An XML Parser.

See Also:
Application, EntityManager

Method Index

 o parseDocument(OpenEntity)
Parses an XML document.
 o setApplication(Application)
Sets the Application, which will receive information about the XML document.
 o setEntityManager(EntityManager)
Sets the EntityManager which will be used to access external entities referenced in the document.
 o setLocale(Locale)
Sets the locale to be used for error messages.

Methods

 o setEntityManager
 public abstract void setEntityManager(EntityManager entityManager)
Sets the EntityManager which will be used to access external entities referenced in the document.

 o setApplication
 public abstract void setApplication(Application application)
Sets the Application, which will receive information about the XML document.

 o setLocale
 public abstract void setLocale(Locale locale)
Sets the locale to be used for error messages.

 o parseDocument
 public abstract void parseDocument(OpenEntity entity) throws IOException, AWTException
Parses an XML document. The current EntityManager, Application and Locale will be used for the entire parse. If no EntityManager has been set, a default EntityManager will be used. If no Locale has been set, the default Locale as returned by Locale.getDefault will be used. If no Application has been set, no information about the document will be reported, but an exception will be thrown if the document is not well-formed.

Parameters:
entity - the document entity of the XML document; the InputStream of the document entity will be closed after parsing
Throws: NotWellFormedException
if the document is not well-formed
Throws: IOException
if an IO error occurs
Throws: AWTException
if a method in Application throws an AWTException

All Packages  Class Hierarchy  This Package  Previous  Next  Index