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; }

18th Sep 2019, 1:59 PM
D.R
D.R - avatar
11 Answers
0
the flow seems fine to me, what you need help with ? also whats inside the feedsFile ?
18th Sep 2019, 3:05 PM
Taste
Taste - avatar
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>
18th Sep 2019, 3:15 PM
D.R
D.R - avatar
0
feedsfile= Feeds data/ url entry i presume
18th Sep 2019, 3:16 PM
D.R
D.R - avatar
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 ?
18th Sep 2019, 3:20 PM
Taste
Taste - avatar
0
Okay i try this. You mean this? Public Feed(String url, SyndFeed sourceFeed) { Code... }
18th Sep 2019, 3:26 PM
D.R
D.R - avatar
0
no the actual feedFile, because i think its kinda strange to load data bit by bit into a List
18th Sep 2019, 3:31 PM
Taste
Taste - avatar
0
This is a file with url's i Think.. a Text file with strings
18th Sep 2019, 3:35 PM
D.R
D.R - avatar
0
singe url in each file ? or there're a lot of it ?
18th Sep 2019, 3:38 PM
Taste
Taste - avatar
0
There are lot of it
18th Sep 2019, 3:39 PM
D.R
D.R - avatar
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;
18th Sep 2019, 3:54 PM
D.R
D.R - avatar
0
Thanks for the Help!
18th Sep 2019, 3:54 PM
D.R
D.R - avatar