Here you can find the source of readLines(final BufferedReader aReader)
public static List<String> readLines(final BufferedReader aReader) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.ArrayList; import java.util.List; public class Main { public static final List<String> readLines(final Reader aReader) throws IOException { return readLines(new BufferedReader(aReader)); }/*from w w w . java 2 s . co m*/ public static List<String> readLines(final BufferedReader aReader) throws IOException { final ArrayList<String> lines = new ArrayList<String>(); while (true) { final String line = aReader.readLine(); if (line == null) break; lines.add(line); } return lines; } }