로마로 이야기를 가져 오는 방법은 무엇입니까?로마에서 rss 피드를 주기적으로 업데이트하십시오.
즉 피드의 업데이트 된 버전을 얻는 방법이 있습니다.
나는 현재 호출 오전 :
URL url = new URL("http://feeds.bbci.co.uk/news/rss.xml");
XmlReader reader = null;
SyndFeedInput input = new SyndFeedInput();
try{
reader = new XmlReader(url);
SyndFeed feed = input.build(reader);
parseFeed(feed);
}
finally {
if (reader != null)
reader.close();
}
그래서 SyndFeed 개체가 자동으로 새로 고쳐집니다. 아니면 재건해야합니까? – Alex
"http://feeds.bbci.co.uk/news/rss.xml"의 실제 콘텐츠가 자동으로 새로 고쳐집니다 (브라우저에서 며칠 동안 열면 볼 수 있습니다). 코드를 실행할 때마다 코드의 현재 버전을 가져옵니다. – iluxa