Atomsphere - About
Atomsphere is a pure java implimentation of the Atom news specification. It is a well designed and easy to use news feed library that integrates nicely with other software. It's written in pure java and can be easily integrated with other parts of your existing or new web application.
- Available in the maven central repository. Source hosted as a git repository in google code. Browse Source Code
- It comes with an intuitive, developer-friendly API (javadoc).
- All objects in the library are serializable, immutable and thread-safe.
- Minimal dependencies. Atomsphere only requires a stax-api implementation to work. So if you are on java 6 there are no dependencies needed.
- In the spirit of Open Source Software, Atomsphere is licensed with the terms of the Apache License, Version 2.0.
- Read a file from disk into a Feed bean.
Feed myFeed = new FeedDoc().readFeedToBean(new File("/myPath/myFeed.xml");
- Read a file from the web into a Feed bean.
Feed myFeed = new FeedDoc().readFeedToBean(new URL("http://www.abcdefg.net/myFeed.xml");
- Read a Feed bean into a String.
String myFeedStr = myFeed.toString();
- Read a Feed bean into a formatted String.
String myFeedStr = new FeedDoc().readFeedToString(myFeed, "javanet.staxutils.IndentingXMLStreamWriter");
- Write a Feed bean to disk.
new FeedDoc().writeFeedDoc(new File("/somewhere/myFeed.xml"), myFeed, "UTF-8", "1.0");
- Write a formatted Feed bean to disk.
new FeedDoc().writeFeedDoc(new javanet.staxutils.IndentingXMLStreamWriter( XMLOutputFactory.newInstance().createXMLStreamWriter( new FileOutputStream("/somewhere/myFeed.xml"), "UTF-8")), myFeed, "UTF-8", "1.0");
- Visit the sister project RSSpect for using RSS 2.0 feeds.