API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.parsers. SAXParserFactory View Source
Author(s)
Jeff Suttor
Neeraj Bajaj
Since
Version
$Revision: 1.5 $, $Date: 2006/04/24 13:41:47 $
Serial
Hierarchy
 Object
      SAXParserFactory
Implements
Subclasses
Description
publicabstract abstract class SAXParserFactory
Defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents.
See also:   
Constructors
protected SAXParserFactory ()
  Protected constructor to force use of SAXParserFactory.newInstance().
Methods
Hide/Show inherited methods
publicabstract boolean getFeature (String name) throws ParserConfigurationException SAXNotRecognizedException SAXNotSupportedException
  Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
public Schema getSchema ()
  Gets the Schema object specified through the SAXParserFactory.setSchema(Schema schema) method.
public boolean isNamespaceAware ()
  Indicates whether or not the factory is configured to produce parsers which are namespace aware.
public boolean isValidating ()
  Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
public boolean isXIncludeAware ()
  Get state of XInclude processing.
publicstatic SAXParserFactory newInstance ()
  Obtain a new instance of a SAXParserFactory.
publicstatic SAXParserFactory newInstance (String factoryClassName, ClassLoader classLoader)
  Obtain a new instance of a SAXParserFactory from class name.
publicabstract SAXParser newSAXParser () throws ParserConfigurationException SAXException
  Creates a new instance of a SAXParser using the currently configured factory parameters.
publicabstract void setFeature (String name, boolean value) throws ParserConfigurationException SAXNotRecognizedException SAXNotSupportedException
  Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.
public void setNamespaceAware (boolean awareness)
  Specifies that the parser produced by this code will provide support for XML namespaces.
public void setSchema (Schema schema)
  Set the Schema to be used by parsers created from this factory.
public void setValidating (boolean validating)
  Specifies that the parser produced by this code will validate documents as they are parsed.
public void setXIncludeAware (boolean state)
  Set state of XInclude processing.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar