Here you can find the source of loadReaderToList(Reader reader)
public static List<String> loadReaderToList(Reader reader) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.util.LinkedList; import java.util.List; public class Main { /**/*from w w w . jav a 2 s . c o m*/ * Reads text from an open reader into a list of strings, each containing one line of the file. */ public static List<String> loadReaderToList(Reader reader) throws IOException { List<String> outList = new LinkedList<String>(); String line; BufferedReader bufferedReader = new BufferedReader(reader); while ((line = bufferedReader.readLine()) != null) outList.add(line); return outList; } }