Class NewsHandler
- java.lang.Object
- 
- org.xml.sax.helpers.DefaultHandler
- 
- crawlercommons.sitemaps.sax.extension.ExtensionHandler
- 
- crawlercommons.sitemaps.sax.extension.NewsHandler
 
 
 
- 
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
 
 public class NewsHandler extends ExtensionHandler Handle SAX events in the Google News sitemap extension namespace.
- 
- 
Field Summary- 
Fields inherited from class crawlercommons.sitemaps.sax.extension.ExtensionHandlerattributes, commaSeparated
 
- 
 - 
Constructor SummaryConstructors Constructor Description NewsHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String localName, String qName)ExtensionMetadata[]getAttributes()voidreset()voidstartElement(String uri, String localName, String qName, Attributes attributes)- 
Methods inherited from class crawlercommons.sitemaps.sax.extension.ExtensionHandlercreate, getDateValue, getFloatValue, getIntegerValue, getURLValue, getYesNoBooleanValue
 - 
Methods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
- 
 
- 
- 
- 
Method Detail- 
resetpublic void reset() - Overrides:
- resetin class- ExtensionHandler
 
 - 
startElementpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- DefaultHandler
- Throws:
- SAXException
 
 - 
endElementpublic void endElement(String uri, String localName, String qName) throws SAXException - Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- DefaultHandler
- Throws:
- SAXException
 
 - 
characterspublic void characters(char[] ch, int start, int length) throws SAXException- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- DefaultHandler
- Throws:
- SAXException
 
 - 
getAttributespublic ExtensionMetadata[] getAttributes() - Overrides:
- getAttributesin class- ExtensionHandler
 
 
- 
 
-