net.sf.ediknight.codec.xml.parser
Class XMLParser

Package class diagram package XMLParser
java.lang.Object
  extended by javax.xml.parsers.SAXParser
      extended by net.sf.ediknight.xml.XMLParser<XMLFormat>
          extended by net.sf.ediknight.codec.xml.parser.XMLParser
All Implemented Interfaces:
net.sf.ediknight.Parser<XMLFormat>

public final class XMLParser
extends net.sf.ediknight.xml.XMLParser<XMLFormat>

This is the XML parser.


Field Summary
private  XMLRecognizer recognizer
           
private  SAXParser saxParser
          The SAX parser.
 
Constructor Summary
XMLParser()
          Constructor.
 
Method Summary
 Parser getParser()
          
 Object getProperty(String name)
          
 net.sf.ediknight.Recognizer<XMLFormat> getRecognizer()
          
 XMLReader getXMLReader()
          
 boolean isNamespaceAware()
          
 boolean isValidating()
          
 void parse(File file)
          
 void parse(InputStream stream)
          
 void setProperty(String name, Object value)
          
 
Methods inherited from class javax.xml.parsers.SAXParser
getSchema, isXIncludeAware, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

saxParser

private SAXParser saxParser
The SAX parser.


recognizer

private XMLRecognizer recognizer
Constructor Detail

XMLParser

public XMLParser()
          throws ParserConfigurationException,
                 SAXException
Constructor.

Throws:
ParserConfigurationException - in case of a serious configuration error
SAXException - if a general SAX error occurs
Method Detail

getParser

public Parser getParser()
                 throws SAXException

Specified by:
getParser in class SAXParser
Throws:
SAXException
See Also:
SAXParser.getParser()

getProperty

public Object getProperty(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException

Specified by:
getProperty in class SAXParser
Throws:
SAXNotRecognizedException
SAXNotSupportedException
See Also:
SAXParser.getProperty( java.lang.String)

isNamespaceAware

public boolean isNamespaceAware()

Specified by:
isNamespaceAware in class SAXParser
See Also:
SAXParser.isNamespaceAware()

isValidating

public boolean isValidating()

Specified by:
isValidating in class SAXParser
See Also:
SAXParser.isValidating()

setProperty

public void setProperty(String name,
                        Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException

Specified by:
setProperty in class SAXParser
Throws:
SAXNotRecognizedException
SAXNotSupportedException
See Also:
SAXParser.setProperty( java.lang.String, java.lang.Object)

parse

public void parse(File file)
           throws IOException,
                  net.sf.ediknight.ParseException

Throws:
IOException
net.sf.ediknight.ParseException
See Also:
Parser.parse(java.io.File)

parse

public void parse(InputStream stream)
           throws IOException,
                  net.sf.ediknight.ParseException

Throws:
IOException
net.sf.ediknight.ParseException
See Also:
Parser.parse(java.io.InputStream)

getRecognizer

public net.sf.ediknight.Recognizer<XMLFormat> getRecognizer()

See Also:
Parser.getRecognizer()

getXMLReader

public XMLReader getXMLReader()
                       throws SAXException

Specified by:
getXMLReader in interface net.sf.ediknight.Parser<XMLFormat>
Specified by:
getXMLReader in class SAXParser
Throws:
SAXException
See Also:
SAXParser.getXMLReader(), Parser.getXMLReader()