Hilbert II - Version 0.03.01

org.qedeq.kernel.xml.parser
Class SaxParser

java.lang.Object
  extended byorg.qedeq.kernel.xml.parser.SaxParser

public final class SaxParser
extends Object

Parser for XML files. This class uses features specific for Xerces.

Version:
$Revision: 1.13 $

Field Summary
protected static String SCHEMA_FULL_CHECKING_FEATURE_ID
          Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).
 
Constructor Summary
SaxParser(SaxDefaultHandler handler)
          Constructor.
 
Method Summary
 ExceptionList getExceptionList()
          Get errors that occurred during last parsing.
 void parse(File file)
          Parses the XML file.
 void parse(InputStream in, boolean validateOnly)
          Parse input source.
 void parse(String fileName)
          Parses XML file.
 void parse(URL url)
          Parses the XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_FULL_CHECKING_FEATURE_ID

protected static final String SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).

See Also:
Constant Field Values
Constructor Detail

SaxParser

public SaxParser(SaxDefaultHandler handler)
          throws ParserConfigurationException,
                 SAXException
Constructor.

Parameters:
handler - Default handler for this application.
Throws:
ParserConfigurationException - Severe parser configuration problem.
SAXException
Method Detail

parse

public final void parse(String fileName)
                 throws SAXException,
                        IOException
Parses XML file.

Parameters:
fileName - File name.
Throws:
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.

parse

public final void parse(File file)
                 throws SAXException,
                        IOException
Parses the XML file.

Parameters:
file - File to parse.
Throws:
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.

parse

public final void parse(URL url)
                 throws SAXException,
                        IOException
Parses the XML file.

Parameters:
url - URL with File to parse.
Throws:
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.

parse

public void parse(InputStream in,
                  boolean validateOnly)
           throws SAXException,
                  IOException
Parse input source.

Parameters:
in - Parse data from this source.
validateOnly - Validate or parse with handler.
Throws:
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.

getExceptionList

public ExceptionList getExceptionList()
Get errors that occurred during last parsing.

Returns:
List with collected Exceptions.

Hilbert II - Version 0.03.01

©left GNU General Public Licence
All Rights Reserved.