- Home
- Binder
- DatatypeConverter
- JAXB
- JAXBContext
- JAXBElement
- JAXBElement.GlobalScope
- JAXBIntrospector
- Marshaller.Listener
- SchemaOutputResolver
- Unmarshaller.Listener
- Javax.xml.bind.util classes
- JAXBResult
- JAXBSource
- ValidationEventCollector
- Javax.xml.parsers classes
- DocumentBuilder
- DocumentBuilderFactory
- SAXParser
- SAXParserFactory
- Javax.xml.soap classes
- AttachmentPart
- MessageFactory
- MimeHeader
- MimeHeaders
- SAAJMetaFactory
- SOAPConnection
- SOAPConnectionFactory
- SOAPFactory
- SOAPMessage
- SOAPPart
- Javax.xml.validation classes
- Schema
- SchemaFactory
- TypeInfoProvider
- Validator
- ValidatorHandler
- Javax.xml.xpath classes
- XPathConstants
- XPathFactory
- Java Useful Resources
- Java - Quick Guide
- Java - Useful Resources
Javax.xml.Parsers.SAXParserFactory Class
Introduction
The javax.xml.Parsers.SAXParserFactory class defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents.
Class declaration
Following is the declaration for javax.xml.Parsers.SAXParserFactory class −
public abstract class SAXParserFactory extends Object
Class constructors
| S.N. | Constructor & Description |
|---|---|
| 1 |
protected SAXParserFactory()
This is the protected constructor to force use of newInstance(). |
Class methods
| S.N. | Method & Description |
|---|---|
| 1 |
abstract boolean getFeature(String name)
This method returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader. |
| 2 |
Schema getSchema()
This method gets the Schema object specified through the setSchema(Schema schema) method. |
| 3 |
boolean isNamespaceAware()
This method indicates whether or not the factory is configured to produce parsers which are namespace aware. |
| 4 |
boolean isValidating()
This method indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. |
| 5 |
boolean isXIncludeAware() This method gets state of XInclude processing. |
| 6 |
static SAXParserFactory newInstance()
This method obtains a new instance of a SAXParserFactory. |
| 7 |
static SAXParserFactory newInstance(String factoryClassName, ClassLoader classLoader)
This method obtains a new instance of a SAXParserFactory from class name. |
| 8 |
abstract SAXParser newSAXParser()
This method creates a new instance of a SAXParser using the currently configured factory parameters. |
| 9 |
abstract void setFeature(String name, boolean value)
This method sets the particular feature in the underlying implementation of org.xml.sax.XMLReade |
| 10 |
void setNamespaceAware(boolean awareness)
This method specifies that the parser produced by this code will provide support for XML namespaces. |
| 11 |
void setSchema(Schema schema)
This method sets the Schema to be used by parsers created from this factory. |
| 12 |
void setValidating(boolean validating)
This method Specifies that the parser produced by this code will validate documents as they are parsed. |
| 13 |
void setXIncludeAware(boolean state)
This method sets state of XInclude processing. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object