Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.xml.aelfred2
Class JAXPFactory  view JAXPFactory download JAXPFactory.java

java.lang.Object
  extended byjavax.xml.parsers.SAXParserFactory
      extended bygnu.xml.aelfred2.JAXPFactory

public final class JAXPFactory
extends javax.xml.parsers.SAXParserFactory

Configurable factory to create an Ælfred2 JAXP parser; required to bootstrap using JAXP. You should use SAX2 directly where possible, rather than through JAXP, since that gives you better control. This class would normally be configured as a platform default factory.


Nested Class Summary
private static class JAXPFactory.JaxpParser
           
 
Field Summary
private  java.util.Hashtable flags
           
 
Fields inherited from class javax.xml.parsers.SAXParserFactory
 
Constructor Summary
JAXPFactory()
          Constructs a factory which normally returns a non-validating parser.
 
Method Summary
 boolean getFeature(java.lang.String name)
          Returns the specified feature for SAX2 parsers obtained from this factory.
 javax.xml.parsers.SAXParser newSAXParser()
          Creates a new parser instance using the currently specified factory configuration.
 void setFeature(java.lang.String name, boolean value)
          Sets the specified feature for SAX2 parsers obtained from this factory.
 
Methods inherited from class javax.xml.parsers.SAXParserFactory
getSchema, isNamespaceAware, isValidating, isXIncludeAware, newInstance, setNamespaceAware, setSchema, setValidating, setXIncludeAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flags

private java.util.Hashtable flags
Constructor Detail

JAXPFactory

public JAXPFactory()
Constructs a factory which normally returns a non-validating parser.

Method Detail

newSAXParser

public javax.xml.parsers.SAXParser newSAXParser()
                                         throws javax.xml.parsers.ParserConfigurationException,
                                                org.xml.sax.SAXException
Description copied from class: javax.xml.parsers.SAXParserFactory
Creates a new parser instance using the currently specified factory configuration.


setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws javax.xml.parsers.ParserConfigurationException,
                       org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Description copied from class: javax.xml.parsers.SAXParserFactory
Sets the specified feature for SAX2 parsers obtained from this factory.


getFeature

public boolean getFeature(java.lang.String name)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Description copied from class: javax.xml.parsers.SAXParserFactory
Returns the specified feature for SAX2 parsers obtained from this factory.