public class XercesParser extends AbstractParser implements Parser, ErrorHandler
engine, params
Constructor and Description |
---|
XercesParser()
Instantiate a DocumentBuilderFactory.
|
Modifier and Type | Method and Description |
---|---|
Document |
create()
Create a new empty DOM Document object.
|
void |
error(SAXParseException e)
Receive notification of a recoverable error.
|
void |
fatalError(SAXParseException e)
Receive notification of a non-recoverable error.
|
Document |
parse(InputSource in)
Parse the specified InputSource.
|
void |
warning(SAXParseException e)
Receive notification of a warning.
|
parse
debug, init, log
public Document parse(InputSource in) throws IOException, CreationException
parse
in interface Parser
in
- The InputSource to parse.IOException
- If an I/O error occourred accessing the specified
System-ID.CreationException
- If an error occourred parsing the document.public Document create()
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
e
- The Exception thrown during parsing.SAXException
- The Exception notifying the client.public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
e
- The Exception thrown during parsing.SAXException
- The Exception notifying the client.public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
e
- The Exception thrown during parsing.SAXException
- The Exception notifying the client.