Java Reader Read Line readLines(Reader input)

Here you can find the source of readLines(Reader input)

Description

read Lines

License

Apache License

Declaration

public static List readLines(Reader input) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache 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 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);//  w ww  .j a v  a2  s .  c  om
            line = reader.readLine();
        }
        return list;
    }
}

Related

  1. readLines(final BufferedReader aReader)
  2. readLines(final Reader input)
  3. readLines(Reader in)
  4. readLines(Reader in, boolean trim)
  5. readLines(Reader input)
  6. readLines(Reader input)
  7. readLines(Reader input)
  8. readLines(Reader input)
  9. readLines(Reader input)