commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <bur...@newsmonster.org>
Subject Re: Fwd: RE: feedparser
Date Sun, 24 Oct 2004 07:45:16 GMT
Brad Neuberg wrote:

>Kevin, do you know of a good answer to his question?
>
>Hope all is well,
>  Brad
>
>  
>
Check out org.apache.commons.feedparser.output.  It was designed for 
exactly what you want.

You give it an output stream and then call feed events on it.

For example:

FileOutputStream fos = new FileOutputStream( "/tmp/rss.xml" );

RSS10_OutputFeedParserListener out = new RSS10_OutputFeedParserListener( 
fos );

out.init();
out.onChannel( null, "My new channel", "http://my.server.com", "this is 
a description" );
out.onItem( ... );
out.onItem( ... );
out.finished();

Then you'll have a new RSS 1.0 file in /tmp/rss.xml

The only problem is that I only have a skeleton impl in CVS now.

I want to have output serializers for RSS 1.0/2.0 and Atom.

Kevin

-- 

Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html

If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
    
Kevin A. Burton, Location - San Francisco, CA
       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412


---------------------------------------------------------------------
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