how to process a set of urls instead of one url per time?
<p>lets say i have a list of urls such as </p>

<p><a href="http://stackexchange.com">http://stackexchange.com</a><br>
  <a href="http://stackoverflow.com/users/login">http://stackoverflow.com/users/login</a><br>
  <a href="http://careers.stackoverflow.com">http://careers.stackoverflow.com</a><br>
  <a href="http://chat.stackoverflow.com">http://chat.stackoverflow.com</a><br>
  <a href="http://meta.stackoverflow.com">http://meta.stackoverflow.com</a><br>
  <a href="http://stackoverflow.com/about">http://stackoverflow.com/about</a> </p>

<p>this list is in a text file. </p>

<p>now i would like to process all the urls in one go. The below coding is the processor. </p>

<pre><code>String sourceUrlString="http://stackexchange.com";
    if (args.length==0)
      System.err.println("Using default argument of \""+sourceUrlString+'"');
    else
        sourceUrlString=args[0];
    if (sourceUrlString.indexOf(':')==-1) sourceUrlString="file:"+sourceUrlString;
    Source source=new Source(new URL(sourceUrlString));
    String renderedText=source.getRenderer().toString();
    System.out.println("\nSimple rendering of the HTML document:\n");
    System.out.println(renderedText);
</code></pre>

<p>as you see, the coding above only can process one url at one time where i must manually key in the url at the sourceurlstring. How do i process all of the urls in the text file in one go ? </p>
