commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@apache.org
Subject cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/impl DebugFeedParserListener.java
Date Wed, 21 Apr 2004 06:59:52 GMT
burton      2004/04/20 23:59:52

  Modified:    feedparser/src/java/org/apache/commons/feedparser
                        RSSFeedParser.java
               feedparser/src/java/org/apache/commons/feedparser/impl
                        DebugFeedParserListener.java
  Log:
  start of performance optimization... console parser
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/RSSFeedParser.java
  
  Index: RSSFeedParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/RSSFeedParser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RSSFeedParser.java	15 Apr 2004 00:58:44 -0000	1.4
  +++ RSSFeedParser.java	21 Apr 2004 06:59:52 -0000	1.5
  @@ -31,7 +31,7 @@
   import org.jaxen.jdom.*;
   
   /**
  - * Handles parsing OPML.
  + * Handles parsing RSS .
    *
    * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
    * @version $Id$
  
  
  
  1.3       +19 -2     jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java
  
  Index: DebugFeedParserListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DebugFeedParserListener.java	28 Feb 2004 03:35:22 -0000	1.2
  +++ DebugFeedParserListener.java	21 Apr 2004 06:59:52 -0000	1.3
  @@ -25,7 +25,7 @@
    * @version $Id$
    */
   public class DebugFeedParserListener extends DefaultFeedParserListener
  -    implements FeedParserListener {
  +    implements FeedParserListener, FeedDirectoryParserListener {
   
       /**
        * Called prior to event parsing to signal the parsing of a new feed.
  @@ -106,6 +106,23 @@
        */
       public void finished() {
           System.out.println( "debug: finished" );
  +    }
  +
  +    /**
  +     * Called when a new Folder is found.  If feeds are in the default root
  +     * folder this method is not called.
  +     *
  +     * @author <a href="mailto:burton@peerfear.org">Kevin Burton</a>
  +     */
  +    public void onFolder( FeedParserState state,
  +                          String name ) throws FeedParserException {
  +
  +        System.out.println( "debug: onFolder: " + name );
  +
  +    }
  +
  +    public void onFolderEnd() throws FeedParserException {
  +
       }
   
   }
  
  
  

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


Mime
View raw message