|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.parsers.DocumentBuilderFactory
net.sf.saxon.dom.DocumentBuilderFactoryImpl
public class DocumentBuilderFactoryImpl
Implementation of JAXP 1.1 DocumentBuilderFactory. To build a Document using Saxon, set the system property javax.xml.parsers.DocumentBuilderFactory to "net.sf.saxon.om.DocumentBuilderFactoryImpl" and then call DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(InputSource);
| Constructor Summary | |
|---|---|
DocumentBuilderFactoryImpl()
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
|
boolean |
getFeature(String name)
Get the state of the named feature. |
DocumentBuilder |
newDocumentBuilder()
|
void |
setAttribute(String name,
Object value)
|
void |
setFeature(String name,
boolean value)
Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentBuilderFactoryImpl()
| Method Detail |
|---|
public void setAttribute(String name,
Object value)
setAttribute in class DocumentBuilderFactorypublic Object getAttribute(String name)
getAttribute in class DocumentBuilderFactory
public DocumentBuilder newDocumentBuilder()
throws ParserConfigurationException
newDocumentBuilder in class DocumentBuilderFactoryParserConfigurationException
public void setFeature(String name,
boolean value)
throws ParserConfigurationException
Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory.
URIs.
Implementations may define their own features.
An ParserConfigurationException is thrown if this DocumentBuilderFactory or the
DocumentBuilders it creates cannot support the feature.
It is possible for an DocumentBuilderFactory to expose a feature value but be unable to change its state.
All implementations are required to support the XMLConstants.FEATURE_SECURE_PROCESSING feature.
When the feature is:
true: the implementation will limit XML processing to conform to implementation limits.
Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
If XML processing is limited for security reasons, it will be reported via a call to the registered
ErrorHandler.fatalError(org.xml.sax.SAXParseException exception).
See DocumentBuilder.setErrorHandler(org.xml.sax.ErrorHandler errorHandler).
false: the implementation will processing XML according to the XML specifications without
regard to possible implementation limits.
setFeature in class DocumentBuilderFactoryname - Feature name.value - Is feature state true or false.
ParserConfigurationException - if this DocumentBuilderFactory or the DocumentBuilders
it creates cannot support this feature.
NullPointerException - If the name parameter is null.
public boolean getFeature(String name)
throws ParserConfigurationException
Get the state of the named feature.
Feature names are fully qualifiedURIs.
Implementations may define their own features.
An ParserConfigurationException is thrown if this DocumentBuilderFactory or the
DocumentBuilders it creates cannot support the feature.
It is possible for an DocumentBuilderFactory to expose a feature value but be unable to change its state.
getFeature in class DocumentBuilderFactoryname - Feature name.
ParserConfigurationException - if this DocumentBuilderFactory
or the DocumentBuilders it creates cannot support this feature.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||