Static mirror of https://github.com/spacecowboy/rome
39c460c0c6
The test is fragile, but there is no point in improving it since fetcher is deprecated anyway. |
||
---|---|---|
conf | ||
rome | ||
rome-certiorem | ||
rome-certiorem-webapp | ||
rome-fetcher | ||
rome-modules | ||
rome-opml | ||
rome-osgi-test | ||
rome-propono | ||
rome-utils | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
Jenkinsfile | ||
LICENSE | ||
pom.xml | ||
README.md |
ROME
ROME is a Java framework for RSS and Atom feeds. The framework consist of several modules:
Module | Description |
---|---|
rome |
Library for generating and parsing RSS and Atom feeds. |
rome-modules |
Generators and parsers for extensions like MediaRSS, GeoRSS and others. |
rome-opml |
OPML parsers and tools. |
Deprecated modules: rome-fetcher
, rome-certiorem
, rome-certiorem-webapp
and rome-propono
.
Examples
Parse a feed:
String url = "http://stackoverflow.com/feeds/tag?tagnames=rome";
SyndFeed feed = new SyndFeedInput().build(new XmlReader(new URL(url)));
System.out.println(feed.getTitle());
Generate a feed:
SyndFeed feed = new SyndFeedImpl();
feed.setFeedType("rss_2.0");
feed.setTitle("test-title");
feed.setDescription("test-description");
feed.setLink("https://example.org");
System.out.println(new SyndFeedOutput().outputString(feed));