public static List < String > getList ( BufferedReader br ) throws ParserException { final List < String > list = new ArrayList < String > ( ) ; processReader ( br , new ReaderProcessor ( ) { @ Override public void process ( String line ) { list . add ( line ) ; } } ) ; return list ; }
Returns the contents of a buffered reader as a list of strings