public static List<String> readLines(InputStream input) throws IOException {
        final InputStreamReader reader = new InputStreamReader(input);
        return readLines(reader);
    }
public static List < String > readLines ( InputStream input ) throws IOException { final InputStreamReader reader = new InputStreamReader ( input ) ; return readLines ( reader ) ; }
Returns the lines of an <code>InputStream</code> as a list of Strings.

@param input  the <code>InputStream</code> to read from.
@return the list of lines.