RSSpect是一个Java类库用来操作RSS2.0数据,API易用和方便。
示例代码:
RSSmyRSS=newRSSDoc().readRSSToBean(newFile("/myPath/myRSS.xml");RSSmyRSS=newRSSDoc().readRSSToBean(newURL("https://www.abcdefg.net/myRSS.xml");StringmyRssStr=newRSSDoc().readRSSToString(myRSS,"javanet.staxutils.IndentingXMLStreamWriter");newRSSDoc().writeRSSDoc(newFile("/somewhere/myRSS.xml"),myRSS,"UTF-8","1.0");
评论