Code example for BufferedReader

Methods: readLine

0
			 
			// Retrieve CSV File 
			URL yahoo = new URL("http://finance.yahoo.com/d/quotes.csv?s="+ symbol + "&f=l1vr2ejkghm3j3");
			URLConnection connection = yahoo.openConnection(); 
			InputStreamReader is = new InputStreamReader(connection.getInputStream());
			BufferedReader br = new BufferedReader(is);  
			 
			// Parse CSV Into Array 
			String line = br.readLine(); 
			String[] stockinfo = line.split(","); 
			 
			// Handle Our Data 
			StockHelper sh = new StockHelper();
			 
			price = sh.handleDouble(stockinfo[0]);
			volume = sh.handleInt(stockinfo[1]);
			pe = sh.handleDouble(stockinfo[2]);
			eps = sh.handleDouble(stockinfo[3]);
			week52low = sh.handleDouble(stockinfo[4]);
			week52high = sh.handleDouble(stockinfo[5]);
Contextual code suggestions in your IDE  Get Codota for Java