0
I need a method to load a feed. Could somebody Help me?
@return List public List<Feed> loadSubscribedFeeds(File feedsFile) { //i tried this List<Feed> result = new Result<Feed>(); try{ InputStream loadFeeds = new FikeInputStream(feedsFile); result.load(loadFeeds); } catch (IOExeption e){ e.printStackTrace(); } return result; }
11 Answers
0
the flow seems fine to me, what you need help with ?
also whats inside the feedsFile ?
0
List<Feed> result = new Result<Feed>(); * Result cannot be resolved to a Type
result.load(loadFeeds); *The Methode load(InputStream) is undefined for the Type List<Feed>
0
feedsfile= Feeds data/ url entry
i presume
0
i thought Result is your own class. you can use ArrayList or LinkedList or Stack or anything as long as its compatible with List.
hows the feed data looks like ?
0
Okay i try this.
You mean this?
Public Feed(String url, SyndFeed sourceFeed) {
Code...
}
0
no the actual feedFile, because i think its kinda strange to load data bit by bit into a List
0
This is a file with url's
i Think.. a Text file with strings
0
singe url in each file ? or there're a lot of it ?
0
There are lot of it
0
I Think i have it
List<Feed> result = new ArrayList<Feed>();
ztey{
InputStream is = new FileInpitStream(feedsFile);
ObjectInputStream ois = new ObjectInputStream(is);
result = ((List<Feed>) ois.readObject();
}
Catch....{}
return result;
0
Thanks for the Help!