Android examples for java.io:InputStreamReader
get String From InputStreamReader
import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.MediaStore; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Calendar; public class Main{ public static String getStringFromStream(InputStreamReader isr) throws Exception { BufferedReader br = new BufferedReader(isr); String result = ""; String temp = br.readLine(); while (temp != null) { result += temp;//from w w w . j a v a 2s. c o m temp = "\n" + br.readLine(); } return result; } }