Code example for JsonReader

Methods: close

0
	 * @throws IOException 
	 */ 
	private static ArrayList<Movie> readJsonStream(InputStream in)
			throws IOException 
	{ 
		JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
		try 
		{ 
			return getMovieArray(reader);
		} finally 
		{ 
			reader.close();
		} 
	} 
 
	/** 
	 * Loops through the JSON Array of Movie Objects 
	 *  
	 * @param reader 
	 *            The com.google.JsonReader object which points to its current 
Contextual code suggestions in your IDE  Get Codota for Java