X

Syndication Feed Reader (1_Read.rxj) – ooRexx with BSF4ooRexx

/* ***************************************************************************** */
/* Example of a syndication feed reader using the Project Rome API with          */
/* BSF4ooRexx                                                                    */
/* current version (2009) of Rome: rome1.0.jar   https://rome.dev.java.net/      */
/* You need to implement this API plus the JDOM API                              */
/* jdom.jar  ,   you can find this at     https://jdom.org/                      */
/*                                                                               */
/* This class retrieves a syndfeed from the web by using a precreated            */
/* Java class via BSF4ooRexx "com.sun.syndication.io.SyndFeedInput" methods      */
/* created by Martin Stoppacher       date:  26.12.2009                          */ 
/* ***************************************************************************** */

javaclass = "FeedReader1"                         /* determine Java class to use */
get=.bsf~new(javaClass)                     /* create an instance of "javaClass" */
say get~getfeed             /* calls the getfeed method in the FeedReader1 class */

::requires BSF.CLS                                       /* get the Java support */

Martin Stoppacher: