Package org.apache.stylebook.parsers
Class XercesParser
java.lang.Object
org.apache.stylebook.AbstractComponent
org.apache.stylebook.parsers.AbstractParser
org.apache.stylebook.parsers.XercesParser
- All Implemented Interfaces:
Component
,Parser
,ErrorHandler
- Version:
- CVS $Revision: 313289 $ $Date: 2002-01-22 18:24:53 +0000 (Tue, 22 Jan 2002) $
- Author:
- Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.
-
Field Summary
Fields inherited from class org.apache.stylebook.AbstractComponent
engine, params
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new empty DOM Document object.void
Receive notification of a recoverable error.void
Receive notification of a non-recoverable error.parse
(InputSource in) Parse the specified InputSource.void
Receive notification of a warning.Methods inherited from class org.apache.stylebook.parsers.AbstractParser
parse
Methods inherited from class org.apache.stylebook.AbstractComponent
debug, init, log
-
Constructor Details
-
XercesParser
public XercesParser()Instantiate a DocumentBuilderFactory.
-
-
Method Details
-
parse
Parse the specified InputSource.- Specified by:
parse
in interfaceParser
- Parameters:
in
- The InputSource to parse.- Returns:
- A non-null DOM Document object.
- Throws:
IOException
- If an I/O error occourred accessing the specified System-ID.CreationException
- If an error occourred parsing the document.
-
create
Create a new empty DOM Document object. -
error
Receive notification of a recoverable error.- Specified by:
error
in interfaceErrorHandler
- Parameters:
e
- The Exception thrown during parsing.- Throws:
SAXException
- The Exception notifying the client.
-
fatalError
Receive notification of a non-recoverable error.- Specified by:
fatalError
in interfaceErrorHandler
- Parameters:
e
- The Exception thrown during parsing.- Throws:
SAXException
- The Exception notifying the client.
-
warning
Receive notification of a warning.- Specified by:
warning
in interfaceErrorHandler
- Parameters:
e
- The Exception thrown during parsing.- Throws:
SAXException
- The Exception notifying the client.
-