public static <T>T eachLine(URL url,String charset,@ClosureParams(value=FromString.class,options={"String","String,Integer"}) Closure<T> closure) throws IOException {
  return eachLine(url,charset,1,closure);
}

public static < T > T eachLine ( URL url , String charset , @ ClosureParams ( value = FromString . class , options = { "String" , "String,Integer" } ) Closure < T > closure ) throws IOException { return eachLine ( url , charset , 1 , closure ) ; }
iterates through the lines read from the url ' s associated input stream passing each line to the given 1 or 2 arg closure . the stream is closed before this method returns .
