net.ontopia.xml
Class JaxpXMLReaderFactory

java.lang.Object
  extended by net.ontopia.xml.JaxpXMLReaderFactory
All Implemented Interfaces:
XMLReaderFactoryIF

public class JaxpXMLReaderFactory
extends java.lang.Object
implements XMLReaderFactoryIF

INTERNAL: A factory for creating SAX2 XMLReaders using the JAXP SAXParserFactory.getXMLReader() method.

The created parser is namespace-aware and non-validating by default.


Field Summary
protected  javax.xml.parsers.SAXParserFactory factory
           
 
Constructor Summary
  JaxpXMLReaderFactory()
          INTERNAL: Creates a factory that creates XML readers that namespace aware and not validating.
protected JaxpXMLReaderFactory(boolean namespace_aware, boolean validating)
          INTERNAL: Creates a factory that creates XML readers with the specified settings for namespace awareness and validation.
 
Method Summary
 org.xml.sax.XMLReader createXMLReader()
          Creates a new SAX2 XMLReader object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected javax.xml.parsers.SAXParserFactory factory
Constructor Detail

JaxpXMLReaderFactory

public JaxpXMLReaderFactory()
INTERNAL: Creates a factory that creates XML readers that namespace aware and not validating.


JaxpXMLReaderFactory

protected JaxpXMLReaderFactory(boolean namespace_aware,
                               boolean validating)
INTERNAL: Creates a factory that creates XML readers with the specified settings for namespace awareness and validation.

Method Detail

createXMLReader

public org.xml.sax.XMLReader createXMLReader()
                                      throws org.xml.sax.SAXException
Creates a new SAX2 XMLReader object.

Specified by:
createXMLReader in interface XMLReaderFactoryIF
Throws:
org.xml.sax.SAXException - Thrown if the class cannot be loaded, instantiated, and cast to XMLReader.


Copyright © 2000-2012 Ontopia.