Here you can find the source of readLine(String value, BufferedReader procout)
static String readLine(String value, BufferedReader procout) throws IOException
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.IOException; public class Main { static String readLine(String value, BufferedReader procout) throws IOException { String line = ""; String found = ""; while ((line = procout.readLine()) != null) { if (found.length() == 0 && line.contains(value)) found = line;/*from w w w . j a v a 2 s.c o m*/ } procout.close(); return found; } }