|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--churchillobjects.rss4j.parser.RssParser | +--churchillobjects.rss4j.parser.RssParserImpl090 | +--churchillobjects.rss4j.parser.RssParserImpl091
Class to parse an RSS document according to the specifications of the RSS .91 standard. This object is created when the base parser already started parsing the document (and knows what the version number is), so it is given the document object and the known namespaces up to that point.
Field Summary | |
protected boolean |
inChannel
Indicates that the SAX handling process is currently in a channel. |
protected boolean |
inImage
Indicates that the SAX handling process is currently in an image. |
protected boolean |
inItem
Indicates that the SAX handling process is currently in an item. |
protected boolean |
inSkipDays
Indicates that the parser is inside the skipDays element, so it should look for days values to follow. |
protected boolean |
inSkipHours
Indicates that the parser is inside the skipHours element, so it should look for hours values to follow. |
protected boolean |
inTextInput
Indicates that the SAX handling process is currently in a text input. |
private static java.lang.String |
VERSION
Static version number string for this implementation. |
Fields inherited from class churchillobjects.rss4j.parser.RssParser |
currentChannel, currentImage, currentItem, currentTextInput, document, namespaces |
Fields inherited from interface churchillobjects.rss4j.model.RssVersion |
VERSION_10, VERSION_90, VERSION_91 |
Constructor Summary | |
(package private) |
RssParserImpl091(churchillobjects.rss4j.RssDocument document,
java.util.Vector namespaces)
Constructor for this RSS verion's parser. |
Method Summary | |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
SAX interface method, indicates that an element has completed. |
private void |
handleChannelAttributes(java.lang.String name)
Handles channel attributes that may exist for RSS 0.91 channels. |
private void |
handleHour()
Handles parsing the hour value for channels. |
private void |
handleImageAttributes(java.lang.String name)
handles image attributes that may exist for RSS 0.91 images. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes attrs)
SAX interface method, begins a new element. |
Methods inherited from class churchillobjects.rss4j.parser.RssParser |
characters, cleanUp, getAttribute, getChars, hasChars, parseRss, parseRss, parseRss, parseRss, parseRss, resetChars, startPrefixMapping |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean inSkipDays
protected boolean inSkipHours
private static final java.lang.String VERSION
protected boolean inChannel
protected boolean inItem
protected boolean inTextInput
protected boolean inImage
Constructor Detail |
RssParserImpl091(churchillobjects.rss4j.RssDocument document, java.util.Vector namespaces)
document
- namespaces
- Method Detail |
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class RssParserImpl090
uri
- name
- qName
- attrs
-
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class RssParserImpl090
uri
- name
- qName
-
org.xml.sax.SAXException
private void handleHour() throws RssParseException
RssParseException
private void handleChannelAttributes(java.lang.String name)
name
- private void handleImageAttributes(java.lang.String name) throws RssParseException
name
-
RssParseException
|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |