public class SecureSaxParserFactory extends SAXParserFactory
Constructor and Description |
---|
SecureSaxParserFactory(SAXParserFactory spf)
Create new secure SAX parser factory wrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getFeature(String s) |
Schema |
getSchema() |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
boolean |
isXIncludeAware() |
SAXParser |
newSAXParser() |
void |
setFeature(String s,
boolean b) |
void |
setNamespaceAware(boolean b) |
void |
setSchema(Schema schema) |
void |
setValidating(boolean b) |
void |
setXIncludeAware(boolean b) |
newInstance, newInstance
public SecureSaxParserFactory(SAXParserFactory spf)
spf
- SAX parser factory.public void setNamespaceAware(boolean b)
setNamespaceAware
in class SAXParserFactory
public void setValidating(boolean b)
setValidating
in class SAXParserFactory
public boolean isNamespaceAware()
isNamespaceAware
in class SAXParserFactory
public boolean isValidating()
isValidating
in class SAXParserFactory
public Schema getSchema()
getSchema
in class SAXParserFactory
public void setSchema(Schema schema)
setSchema
in class SAXParserFactory
public void setXIncludeAware(boolean b)
setXIncludeAware
in class SAXParserFactory
public boolean isXIncludeAware()
isXIncludeAware
in class SAXParserFactory
public SAXParser newSAXParser() throws ParserConfigurationException, SAXException
newSAXParser
in class SAXParserFactory
ParserConfigurationException
SAXException
public void setFeature(String s, boolean b) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
setFeature
in class SAXParserFactory
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
public boolean getFeature(String s) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
getFeature
in class SAXParserFactory
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.