| com.jclark.xml.parse.base.Parser
All known Subclasses: com.jclark.xml.parse.base.ParserImpl,
Parser | public interface Parser (Code) | | An XML Parser.
See Also: Application See Also: EntityManager version: $Revision: 1.1 $ $Date: 1998/05/08 06:38:15 $ |
parseDocument | void parseDocument(OpenEntity entity) throws ApplicationException, IOException(Code) | | 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 InputStreamof the document entity will be closed after parsing exception: NotWellFormedException - if the document is not well-formed exception: IOException - if an IO error occurs exception: ApplicationException - if any of the Application methows throw an Exception |
setApplication | void setApplication(Application application)(Code) | | Sets the Application , which will receive information
about the XML document.
|
setEntityManager | void setEntityManager(EntityManager entityManager)(Code) | | Sets the EntityManager which will be used
to access external entities referenced in the document.
|
setLocale | void setLocale(Locale locale)(Code) | | Sets the locale to be used for error messages.
|
|
|