Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question 15 Thread results to One container?  RSS feed

 
Eric Haskins
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys/Gals,

Forgive me for some of my terminology I have worked with mostly PHP and Perl up till now. I have an app that consumes 15 feeds and it is threaded. Main spawns 15 threads making URLRequests. Now I am trying to figure out how to store the data from each feed allowing me to parse the 15 results into 1 XML result.

I am having a hard time finding any good tutorials on getting the 15 results into a container so I can parse. In PHP I would use a associative array

$feeds['ask.com'] = "Result in here";
$feeds['search.com'] = "result in here";

Thanks for any links or info.

Eric
 
Vijitha Kumara
Saloon Keeper
Posts: 3997
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Haskins wrote:I am having a hard time finding any good tutorials on getting the 15 results into a container so I can parse. In PHP I would use a associative array
$feeds['ask.com'] = "Result in here";
$feeds['search.com'] = "result in here";

If you want to store the data by their domain name (assuming they are unique) using a Map is the way to go. Basics from SUN tutorial .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!