Here you can find the source of readLines(Reader input)
public static List readLines(Reader input) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.util.ArrayList; import java.util.List; public class Main { public static List readLines(InputStream input) throws IOException { InputStreamReader reader = new InputStreamReader(input); return readLines(reader); }/* w w w. j a va 2s . com*/ public static List readLines(Reader input) throws IOException { BufferedReader reader = new BufferedReader(input); List list = new ArrayList(); String line = reader.readLine(); while (line != null) { list.add(line); line = reader.readLine(); } closeQuietly(reader); return list; } public static void closeQuietly(java.io.Closeable writer) { try { if (writer != null) { writer.close(); } } catch (IOException ioe) { // ignore } } }