Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 50109 invoked from network); 4 Jul 2004 05:52:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jul 2004 05:52:53 -0000 Received: (qmail 87604 invoked by uid 500); 4 Jul 2004 05:52:53 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 87427 invoked by uid 500); 4 Jul 2004 05:52:49 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 87390 invoked by uid 500); 4 Jul 2004 05:52:48 -0000 Received: (qmail 87289 invoked by uid 99); 4 Jul 2004 05:52:45 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Sat, 03 Jul 2004 22:52:44 -0700 Received: (qmail 49948 invoked by uid 1110); 4 Jul 2004 05:52:35 -0000 Date: 4 Jul 2004 05:52:35 -0000 Message-ID: <20040704055235.49947.qmail@minotaur.apache.org> From: burton@apache.org To: jakarta-commons-sandbox-cvs@apache.org Subject: cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/example HelloFeedParser.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N burton 2004/07/03 22:52:35 Modified: feedparser TODO build.xml Added: feedparser/src/java/org/apache/commons/feedparser/example HelloFeedParser.java Log: Start of docs and examples Revision Changes Path 1.9 +1 -1 jakarta-commons-sandbox/feedparser/TODO Index: TODO =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/TODO,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- TODO 15 Apr 2004 16:57:20 -0000 1.8 +++ TODO 4 Jul 2004 05:52:35 -0000 1.9 @@ -16,7 +16,7 @@ - OCS directory support (pending) - FOAF support (pending) - + - Migrate away from JDOM (slower than just using DOM/SAX) - Don't use libs from the KSA. 1.3 +30 -0 jakarta-commons-sandbox/feedparser/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- build.xml 18 Feb 2004 21:07:23 -0000 1.2 +++ build.xml 4 Jul 2004 05:52:35 -0000 1.3 @@ -12,6 +12,14 @@ + + + + + + + + @@ -82,6 +90,28 @@ + + + + + + + + + + + + 1.1 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java Index: HelloFeedParser.java =================================================================== /* * Copyright 1999,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.feedparser.example; import org.apache.commons.feedparser.*; import org.apache.commons.feedparser.impl.*; import java.io.*; import java.net.*; import java.util.*; /** * Example use of the FeedParser * * @author Kevin A. Burton (burtonator) * @version $Id: HelloFeedParser.java,v 1.1 2004/07/04 05:52:35 burton Exp $ */ public class HelloFeedParser { public static void main( String[] args ) throws Exception { FeedParser parser = FeedParserFactory.newFeedParser(); FeedParserListener listener = new DefaultFeedParserListener() { public void onItem( FeedParserState state, String title, String link, String description, String permalink ) throws FeedParserException { System.out.println( "Found a new published article: " + permalink ); } }; parser.parse( listener, new URL( "http://peerfear.org/rss/index.rss" ).openStream() ); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org