Code example for DataInputStream

Methods: readLine

0
		 * the shows that Electric Flurry will play at for before 
		 * and after the show*/ 
		try { 
			URL url = new URL(fqUrl);
			InputStream conn = url.openStream();
			DataInputStream stream = new DataInputStream(new BufferedInputStream(conn));
			 
			firstThing = stream.readLine();
			try { 
				JSONObject jsonObj = new JSONObject(firstThing);
				jsonObj = jsonObj.getJSONObject("response");
				JSONArray venues = jsonObj.getJSONArray("venues");
				JSONObject oneVenue = venues.getJSONObject(0);
				 
				firstThing = oneVenue.getString("name");
			} 
			catch(JSONException e) {
				Log.d("Foursquare", "JSON issue", e);
			} 
			 
Connect your IDE to all the code out there  Get Codota for Java