public abstract class VerifierImpl extends Object implements Verifier
Verifier.
This class is useful as the base class of the verifier implementation.
The only remaining method that has to be implemented by the derived
class is the getVerifierHandler method. Please be noted
that applications can call the setErrorHandler method
after the getVerifierHandler method and that change
should take effect.
| Modifier and Type | Field and Description |
|---|---|
protected EntityResolver |
entityResolver |
protected ErrorHandler |
errorHandler |
protected XMLReader |
reader |
FEATURE_FILTER, FEATURE_HANDLER| Modifier | Constructor and Description |
|---|---|
protected |
VerifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String property) |
VerifierFilter |
getVerifierFilter() |
abstract VerifierHandler |
getVerifierHandler() |
boolean |
isFeature(String feature) |
protected void |
prepareXMLReader()
Creates and sets a sole instance of XMLReader which will be used
by this verifier.
|
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setFeature(String feature,
boolean value) |
void |
setProperty(String property,
Object value) |
boolean |
verify(File f) |
boolean |
verify(InputSource source) |
boolean |
verify(Node node) |
boolean |
verify(String uri) |
protected XMLReader reader
protected ErrorHandler errorHandler
protected EntityResolver entityResolver
protected VerifierImpl()
throws VerifierConfigurationException
VerifierConfigurationExceptionprotected void prepareXMLReader()
throws VerifierConfigurationException
VerifierConfigurationExceptionpublic boolean isFeature(String feature) throws SAXNotRecognizedException, SAXNotSupportedException
isFeature in interface VerifierSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setFeature(String feature, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature in interface VerifierSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String property) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in interface VerifierSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String property, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in interface VerifierSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface Verifierpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface Verifierpublic boolean verify(String uri) throws SAXException, IOException
verify in interface VerifierSAXExceptionIOExceptionpublic boolean verify(InputSource source) throws SAXException, IOException
verify in interface VerifierSAXExceptionIOExceptionpublic boolean verify(File f) throws SAXException, IOException
verify in interface VerifierSAXExceptionIOExceptionpublic boolean verify(Node node) throws SAXException
verify in interface VerifierSAXExceptionpublic abstract VerifierHandler getVerifierHandler() throws SAXException
getVerifierHandler in interface VerifierSAXExceptionpublic VerifierFilter getVerifierFilter() throws SAXException
getVerifierFilter in interface VerifierSAXExceptionCopyright © 2017 Oracle Corporation. All rights reserved.