Java BufferedReader Read loadLine(InputStream load)

Here you can find the source of loadLine(InputStream load)

Description

load Line

License

Apache License

Declaration

public static String loadLine(InputStream load) throws IOException, JSONException 

Method Source Code


//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();
        }
    }
}

Related

  1. loadIntoString(InputStream is)
  2. loadJCC()
  3. loadJson(String path)
  4. loadKey(String filename)
  5. loadLastExpInfo(String lastExpFileName)
  6. loadLineByLineAndTrim(String file_path)
  7. loadLines(InputStream in, List lines)
  8. loadLines(String file)
  9. loadLines(String fileName)