public class SAXParserFactoryImpl extends SAXParserFactory
This class uses another SAXParserFactory implementation and adds the validation capability to it.
Constructor and Description |
---|
SAXParserFactoryImpl()
Creates a new instance by using the default SAXParserFactory implementation
as the underlying parser.
|
SAXParserFactoryImpl(File schemaAsFile)
Creates a new instance that validates documents against the specified schema.
|
SAXParserFactoryImpl(InputSource _schema)
Creates a new instance that validates documents against the specified schema.
|
SAXParserFactoryImpl(SAXParserFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory
implementation.
|
SAXParserFactoryImpl(SAXParserFactory _factory,
org.iso_relax.verifier.Schema _schema) |
SAXParserFactoryImpl(org.iso_relax.verifier.Schema schema)
Creates a new instance by using a default SAXParserFactory implementation
and the specified schema object.
|
SAXParserFactoryImpl(String schemaUrl)
Creates a new instance that validates documents against the specified schema.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getFeature(String name) |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
SAXParser |
newSAXParser() |
void |
setFeature(String name,
boolean value) |
void |
setNamespaceAware(boolean awareness) |
void |
setValidating(boolean validating) |
getSchema, isXIncludeAware, newInstance, newInstance, setSchema, setXIncludeAware
public SAXParserFactoryImpl()
public SAXParserFactoryImpl(SAXParserFactory _factory)
public SAXParserFactoryImpl(org.iso_relax.verifier.Schema schema)
public SAXParserFactoryImpl(File schemaAsFile) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
public SAXParserFactoryImpl(InputSource _schema) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
public SAXParserFactoryImpl(String schemaUrl) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
public SAXParserFactoryImpl(SAXParserFactory _factory, org.iso_relax.verifier.Schema _schema)
public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
getFeature
in class SAXParserFactory
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
setFeature
in class SAXParserFactory
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
public SAXParser newSAXParser() throws ParserConfigurationException, SAXException
newSAXParser
in class SAXParserFactory
ParserConfigurationException
SAXException
public void setNamespaceAware(boolean awareness)
setNamespaceAware
in class SAXParserFactory
public boolean isNamespaceAware()
isNamespaceAware
in class SAXParserFactory
public void setValidating(boolean validating)
setValidating
in class SAXParserFactory
public boolean isValidating()
isValidating
in class SAXParserFactory
Copyright © 2016 Oracle Corporation. All rights reserved.