oracle.xml.jaxp
Class JXSAXParserFactory
java.lang.Object
|
+--javax.xml.parsers.SAXParserFactory
|
+--oracle.xml.jaxp.JXSAXParserFactory
- public class JXSAXParserFactory
- extends SAXParserFactory
Defines a factory API that enables applications to configure and
obtain a SAX based parser to parse XML documents.
- Since:
- JAXP 1.0
Type | Method |
boolean |
getFeature(java.lang.String name)
returns the particular property requested for in the underlying
implementation of org.xml.sax.XMLReader. |
boolean |
isNamespaceAware()
Indicates whether or not the factory is configured to produce
parsers which are namespace aware. |
SAXParser |
newSAXParser()
Creates a new instance of a SAXParser using the currently
configured factory parameters. |
void |
setFeature(java.lang.String name,
boolean value)
Sets the particular feature in the underlying implementation of
org.xml.sax.XMLReader. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
JXSAXParserFactory
public JXSAXParserFactory()
- Default Constructor
newSAXParser
public SAXParser newSAXParser()
throws ParserConfigurationException,
SAXException
- Creates a new instance of a SAXParser using the currently
configured factory parameters.
- Overrides:
- newSAXParser in class SAXParserFactory
- Throws:
- ParserConfigurationException - if a parser cannot
be created which satisfies the requested configuration.
isNamespaceAware
public boolean isNamespaceAware()
- Indicates whether or not the factory is configured to produce
parsers which are namespace aware.
- Overrides:
- isNamespaceAware in class SAXParserFactory
setFeature
public void setFeature(java.lang.String name,
boolean value)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
- Sets the particular feature in the underlying implementation of
org.xml.sax.XMLReader.
- Overrides:
- setFeature in class SAXParserFactory
- Parameters:
name
- The name of the feature to be set.value
- The value of the feature to be set.- Throws:
- SAXNotRecognizedException - When the underlying XMLReader does
not recognize the property name.
- SAXNotSupportedException - When the underlying XMLReader
recognizes the property name but doesn't support the
property.
- See Also:
XMLReader.setFeature(java.lang.String, boolean)
getFeature
public boolean getFeature(java.lang.String name)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
- returns the particular property requested for in the underlying
implementation of org.xml.sax.XMLReader.
- Overrides:
- getFeature in class SAXParserFactory
- Parameters:
name
- The name of the property to be retrieved.- Returns:
- Value of the requested property.
- Throws:
- SAXNotRecognizedException - When the underlying XMLReader does
not recognize the property name.
- SAXNotSupportedException - When the underlying XMLReader
recognizes the property name but doesn't support the
property.
- See Also:
XMLReader.getProperty(java.lang.String)