Here you can find the source of loadLine(InputStream load)
public static String loadLine(InputStream load) throws IOException, JSONException
//package com.java2s; //License from project: Apache License import org.json.JSONException; import java.io.*; public class Main { public static String loadLine(InputStream load) throws IOException, JSONException { try {/*from w w w . j a va 2s . c o m*/ DataInputStream bis = new DataInputStream(load); BufferedReader br = new BufferedReader(new InputStreamReader(bis)); return br.readLine(); } finally { load.close(); } } }