You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/02/22 05:07:31 UTC

cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser MetaFeedParserListener.java

burton      2004/02/21 20:07:31

  Modified:    feedparser/src/java/org/apache/commons/feedparser
                        MetaFeedParserListener.java
  Log:
  documentation for onCreated
  
  Revision  Changes    Path
  1.2       +35 -4     jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java
  
  Index: MetaFeedParserListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MetaFeedParserListener.java	18 Feb 2004 20:05:20 -0000	1.1
  +++ MetaFeedParserListener.java	22 Feb 2004 04:07:31 -0000	1.2
  @@ -77,16 +77,44 @@
       public void onCopyrightEnd() throws FeedParserException;
   
       /**
  +     * 
  +     * --- ATOM SUPPORT ---
  +     * 
  +     * The "atom:created" element's content indicates the time that the entry
  +     * was created. Entries MAY contain an atom:created element, but MUST NOT
  +     * contain more than one. When this element is present, its content MUST be
  +     * a W3C Date-Time string [[ref]]. The date SHOULD be expressed in the "UTC"
  +     * time zone [[reword?]].
  +     * 
  +     * If atom:created is not present, CONSUMERS MUST consider its value to be
  +     * the same as that of atom:modified.
  +     * 
        * http://www.mnot.net/drafts/draft-nottingham-atom-format-00.html#rfc.section.3.2.8
        *
  +     * --- RSS 2.0 SUPPORT ---
  +     *
  +     * <pubDate> is an optional sub-element of <item>.
  +     * 
  +     * Its value is a date, indicating when the item was published. If it's a
  +     * date in the future, aggregators may choose to not display the item until
  +     * that date.
  +     * 
  +     * <pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>
  +     * 
  +     * http://feedvalidator.org/docs/rss2.html#ltpubdategtSubelementOfLtitemgt
  +     * 
  +     * --- RSS 1.0 SUPPORT ---
  +     * 
  +     * dc:date
  +     * 
  +     * http://www.w3.org/TR/NOTE-datetime
  +     * http://web.resource.org/rss/1.0/modules/dc/
  +     *      
        * @author <a href="mailto:burton@peerfear.org">Kevin Burton</a>
        */
       public void onCreated( FeedParserState state, Date date ) throws FeedParserException;
       public void onCreatedEnd() throws FeedParserException;
   
  -    public void onSubject( FeedParserState state, String content ) throws FeedParserException;
  -    public void onSubjectEnd() throws FeedParserException;
  -
       /**
        * http://www.mnot.net/drafts/draft-nottingham-atom-format-00.html#rfc.section.3.2.7
        *
  @@ -94,6 +122,9 @@
        */
       public void onIssued( FeedParserState state, String content ) throws FeedParserException; 
       public void onIssuedEnd() throws FeedParserException;
  +
  +    public void onSubject( FeedParserState state, String content ) throws FeedParserException;
  +    public void onSubjectEnd() throws FeedParserException;
       
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org