org.robsite.extension.rss.model
Class SimpleRSSParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.robsite.extension.rss.model.SimpleRSSParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class SimpleRSSParser
- extends org.xml.sax.helpers.DefaultHandler
This is a simple RSS parser.
- Author:
- rcleveng@users.sourceforge.net, brian_duff@users.sourceforge.net
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parse
public static Channel parse(java.lang.String urlString)
throws java.net.MalformedURLException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Throws:
java.net.MalformedURLException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
parse
public static void parse(Channel channel)
throws java.net.MalformedURLException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Throws:
java.net.MalformedURLException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
parse
public static Channel parse(java.lang.String urlString,
Channel channel)
throws java.net.MalformedURLException,
org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.net.MalformedURLException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
getChannel
public Channel getChannel()
startElement
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
endElement
public void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
characters
public void characters(char[] ch,
int start,
int length)
main
public static void main(java.lang.String[] args)
Copyright © 2005 robsite.org. All Rights Reserved.