public class PhoneExtractingContentHandler extends ContentHandlerDecorator
| Modifier | Constructor and Description |
|---|---|
protected |
PhoneExtractingContentHandler()
Creates a decorator that by default forwards incoming SAX events to
a dummy content handler that simply ignores all the events.
|
|
PhoneExtractingContentHandler(ContentHandler handler,
Metadata metadata)
Creates a decorator for the given SAX event handler and Metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
The characters method is called whenever a Parser wants to pass raw...
|
void |
endDocument()
This method is called whenever the Parser is done parsing the file.
|
endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringerror, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningpublic PhoneExtractingContentHandler(ContentHandler handler, Metadata metadata)
handler - SAX event handler to be decoratedprotected PhoneExtractingContentHandler()
ContentHandlerDecorator.setContentHandler(ContentHandler) method to
switch to a more usable underlying content handler.
Also creates a dummy Metadata object to store phone numbers in.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class ContentHandlerDecoratorSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ContentHandlerDecoratorSAXExceptionCopyright © 2007–1969 The Apache Software Foundation. All rights reserved.