Java BufferedReader Read Line readLine(BufferedReader br)

Here you can find the source of readLine(BufferedReader br)

Description

read Line

License

Open Source License

Declaration

public static String readLine(BufferedReader br) throws IOException 

Method Source Code

//package com.java2s;
import java.io.BufferedReader;

import java.io.IOException;

public class Main {
    public static final String EOF = "__EOF__";

    public static String readLine(BufferedReader br) throws IOException {
        String str = null;//from  w  ww .j a  v  a2s  .  co m
        str = br.readLine();

        if (str == null) {
            str = EOF;
        }

        return str;
    }
}

Related

  1. readLine()
  2. readLine()
  3. readLine()
  4. readLine()
  5. readLine()
  6. readLine(BufferedReader br, int maxlen)
  7. readLine(BufferedReader in)
  8. readLine(BufferedReader in)
  9. readline(BufferedReader in, BufferedReader err)