manjyurss (manjyu-rss-0.5.0) | 2012-11-29 23:05 |
ManjyuRss is Free RSS 2.0 Library for Java. ManjyuRss require Java 1.5 or later. ManjyuRss depends Java SE API only. Using ManjyuRss, read and write RSS 2.0 in small memory footprint.
http://sourceforge.jp/projects/manjyurss/wiki/
manjyurss (manjyu-rss-0.5.0) | 2012-11-29 23:05 |
Java 1.5 or later.
ManjyuRss is licensed under a LGPL/EPL/ASL triple license, allowing use of the files under the terms of any one of the GNU Lesser General Public License, the Eclipse Public License, or the Apache License.
Using ManjyuRss is very easy.
- import java.io.IOException;
- import java.util.Date;
- import org.manjyu.rss.ManjyuRssSerializer;
- import org.manjyu.rss.vo.ManjyuRss;
- import org.manjyu.rss.vo.ManjyuRssChannel;
- import org.manjyu.rss.vo.ManjyuRssItem;
- public class GettingStarted001 {
- public static final void main(final String[] args) throws IOException {
- final ManjyuRss rss = new ManjyuRss();
- final ManjyuRssChannel channel = rss.getChannel();
- channel.setTitle("Sample RSS.");
- channel.setLink("http://www.igapyon.com/");
- channel.setDescription("Description of sample RSS.");
- channel.setLanguage("en_US");
- channel.setCopyright("Copyright(C) Toshiki Iga");
- channel.setPubDate(new Date());
- new ManjyuRssSerializer() {
- @Override
- protected void processItems() throws IOException {
- {
- final ManjyuRssItem item = new ManjyuRssItem();
- item.setTitle("bsqlformatter: Free online SQL formatter");
- item.setLink("http://www.igapyon.com/bsqlformatter/");
- item.setDescription("bsqlformatter is a Free Online SQL Formatter.");
- item.setPubDate(new Date());
- serializeItem(item);
- }
- {
- final ManjyuRssItem item = new ManjyuRssItem();
- item.setTitle("Manjyu: classify URL system");
- item.setLink("http://www.igapyon.com/manjyu/");
- item.setDescription("Manjyu is URL management system for classify URL as you want.");
- item.setPubDate(new Date());
- serializeItem(item);
- }
- }
- }.serialize(rss, System.out);
- }
- }
- <?xml version="1.0" encoding="UTF-8"?>
- <rss version="2.0">
- <!-- Generated by ManjyuRss (0.0.2-201211142334) -->
- <channel>
- <title>Sample RSS.</title>
- <link>http://www.igapyon.com/</link>
- <description>Description of sample RSS.</description>
- <language>en_US</language>
- <copyright>Copyright(C) Toshiki Iga</copyright>
- <pubDate>Wed, 14 Nov 2012 23:43:32 +0900</pubDate>
- <generator>Manjyu RSS Library (0.0.2-201211142334)</generator>
- <docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <item>
- <title>bsqlformatter: Free online SQL formatter</title>
- <link>http://www.igapyon.com/bsqlformatter/</link>
- <description>bsqlformatter is a Free Online SQL Formatter.</description>
- <pubDate>Wed, 14 Nov 2012 23:43:33 +0900</pubDate>
- </item>
- <item>
- <title>Manjyu: classify URL system</title>
- <link>http://www.igapyon.com/manjyu/</link>
- <description>Manjyu is URL management system for classify URL as you want.</description>
- <pubDate>Wed, 14 Nov 2012 23:43:33 +0900</pubDate>
- </item>
- </channel>
- </rss>
For more infomation, see GettingStarted.