org.apache.commons.feedparser
Class TagFeedParser

java.lang.Object
  extended by org.apache.commons.feedparser.TagFeedParser

public class TagFeedParser
extends Object

Handles parsing RSS metadata including dates

Version:
$Id: TagFeedParser.java 373614 2006-01-30 22:31:21Z mvdb $
Author:
Kevin A. Burton (burtonator)

Constructor Summary
TagFeedParser()
           
 
Method Summary
static void doDcSubject(TagFeedParserListener listener, FeedParserState state)
          Parse out dc:subject tags Its not very clear how this is supposed to work.
static boolean doParseCategory(TagFeedParserListener listener, FeedParserState state)
          Parse out atom:category and RSS 2.0/0.91 category
static boolean doParseModTaxonomy(TagFeedParserListener listener, FeedParserState state)
           
static void parse(FeedParserListener listener, FeedParserState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagFeedParser

public TagFeedParser()
Method Detail

parse

public static void parse(FeedParserListener listener,
                         FeedParserState state)
                  throws Exception
Throws:
Exception

doDcSubject

public static void doDcSubject(TagFeedParserListener listener,
                               FeedParserState state)
                        throws Exception
Parse out dc:subject tags Its not very clear how this is supposed to work. "Comment: Typically, a Subject will be expressed as keywords, key phrases or classification codes that describe a topic of the resource. Recommended best practice is to select a value from a controlled vocabulary or formal classification scheme." But this leaves it open to whether its a space separated list or that this needs to be per element. It seems that the real infringer is Delicious but I can fix this by processing dc:subject last.

Throws:
Exception

doParseCategory

public static boolean doParseCategory(TagFeedParserListener listener,
                                      FeedParserState state)
                               throws Exception
Parse out atom:category and RSS 2.0/0.91 category

Throws:
Exception

doParseModTaxonomy

public static boolean doParseModTaxonomy(TagFeedParserListener listener,
                                         FeedParserState state)
                                  throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.