Java BufferedReader Read Line readLine(String value, BufferedReader procout)

Here you can find the source of readLine(String value, BufferedReader procout)

Description

read Line

License

Apache License

Declaration

static String readLine(String value, BufferedReader procout) throws IOException 

Method Source Code


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

Related

  1. readLine(String path)
  2. readLine(String prompt)
  3. readLine(String prompt, boolean force)
  4. readLine(String s)
  5. readLine(String s)
  6. readLineByLine(File file, char[][] terminators, boolean keepTerminators, Consumer readLineListener)
  7. readLineFile(File file)
  8. readLineFile(String filePath)
  9. readLineFromCommand(String command[])