public class VerifierFilterImpl extends XMLFilterImpl implements VerifierFilter
VerifierFilter implementation.
A verifier implementation can use this class to support VerifierFilter functionality.
To use this class, implement the Verifier.getVerifierFilter() method
as follows:
public VerifierFilter getVerifierFilter() throws SAXException {
return new VerifierFilterImpl(getVerifierHandler());
}
Also, usually you may want to override setErrorHandler method so that
your VerifierHandler will send errors to that handler.
| Constructor and Description |
|---|
VerifierFilterImpl(Verifier _verifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
boolean |
isValid()
checks if the document was valid.
|
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setContentHandler, setDTDHandler, setFeature, setParent, setProperty, unparsedEntityDecl, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setFeature, setPropertypublic VerifierFilterImpl(Verifier _verifier) throws SAXException
SAXExceptionpublic boolean isValid()
VerifierFilterThis method can be only called after this handler receives the endDocument event.
isValid in interface VerifierFilterpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReadersetErrorHandler in class XMLFilterImplpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReadersetEntityResolver in class XMLFilterImplpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class XMLFilterImplpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class XMLFilterImplSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class XMLFilterImplSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class XMLFilterImplSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class XMLFilterImplSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class XMLFilterImplSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class XMLFilterImplSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class XMLFilterImplSAXException