ManjyuRss

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.

Home page

http://sourceforge.jp/projects/manjyurss/wiki/

Download

最新リリース情報

manjyurss (manjyu-rss-0.5.0)2012-11-29 23:05

System Requirements

Java 1.5 or later.

Licensing

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.

Source Code

Source Code

GettingStarted

Using ManjyuRss is very easy.

Writing RSS 2.0 sample

  1. import java.io.IOException;
  2. import java.util.Date;
  3. import org.manjyu.rss.ManjyuRssSerializer;
  4. import org.manjyu.rss.vo.ManjyuRss;
  5. import org.manjyu.rss.vo.ManjyuRssChannel;
  6. import org.manjyu.rss.vo.ManjyuRssItem;
  7. public class GettingStarted001 {
  8. public static final void main(final String[] args) throws IOException {
  9. final ManjyuRss rss = new ManjyuRss();
  10. final ManjyuRssChannel channel = rss.getChannel();
  11. channel.setTitle("Sample RSS.");
  12. channel.setLink("http://www.igapyon.com/");
  13. channel.setDescription("Description of sample RSS.");
  14. channel.setLanguage("en_US");
  15. channel.setCopyright("Copyright(C) Toshiki Iga");
  16. channel.setPubDate(new Date());
  17. new ManjyuRssSerializer() {
  18. @Override
  19. protected void processItems() throws IOException {
  20. {
  21. final ManjyuRssItem item = new ManjyuRssItem();
  22. item.setTitle("bsqlformatter: Free online SQL formatter");
  23. item.setLink("http://www.igapyon.com/bsqlformatter/");
  24. item.setDescription("bsqlformatter is a Free Online SQL Formatter.");
  25. item.setPubDate(new Date());
  26. serializeItem(item);
  27. }
  28. {
  29. final ManjyuRssItem item = new ManjyuRssItem();
  30. item.setTitle("Manjyu: classify URL system");
  31. item.setLink("http://www.igapyon.com/manjyu/");
  32. item.setDescription("Manjyu is URL management system for classify URL as you want.");
  33. item.setPubDate(new Date());
  34. serializeItem(item);
  35. }
  36. }
  37. }.serialize(rss, System.out);
  38. }
  39. }

Result of writing RSS 2.0 sample

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rss version="2.0">
  3. <!-- Generated by ManjyuRss (0.0.2-201211142334) -->
  4. <channel>
  5. <title>Sample RSS.</title>
  6. <link>http://www.igapyon.com/</link>
  7. <description>Description of sample RSS.</description>
  8. <language>en_US</language>
  9. <copyright>Copyright(C) Toshiki Iga</copyright>
  10. <pubDate>Wed, 14 Nov 2012 23:43:32 +0900</pubDate>
  11. <generator>Manjyu RSS Library (0.0.2-201211142334)</generator>
  12. <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  13. <item>
  14. <title>bsqlformatter: Free online SQL formatter</title>
  15. <link>http://www.igapyon.com/bsqlformatter/</link>
  16. <description>bsqlformatter is a Free Online SQL Formatter.</description>
  17. <pubDate>Wed, 14 Nov 2012 23:43:33 +0900</pubDate>
  18. </item>
  19. <item>
  20. <title>Manjyu: classify URL system</title>
  21. <link>http://www.igapyon.com/manjyu/</link>
  22. <description>Manjyu is URL management system for classify URL as you want.</description>
  23. <pubDate>Wed, 14 Nov 2012 23:43:33 +0900</pubDate>
  24. </item>
  25. </channel>
  26. </rss>

For more infomation, see GettingStarted.

Specification

Serializer

  • RSS 2.0
    1. Limitation: Tag <rating>, <textInput>, <skipHours> are not supported currently.

Parser

  • RSS 2.0
    1. Limitation: Tag <rating>, <textInput>, <skipHours> are not supported currently.
  • Support some RDF/RSS 1.0 tags.
    1. dc:subject, dc:image, dc:date, dc:rights, dc:publisher, dc:creator are supported.