public List < T > readAll ( Reader reader , Collection < ParseError > parseErrors ) throws IOException , ParseException { checkEntityConfig ( ) ; BufferedReader bufferedReader = new BufferedReaderLineCounter ( reader ) ; try { ParseError parseError = null ; // we do this to reuse the parse error objects if we can if ( parseErrors != null ) { parseError = new ParseError ( ) ; } if ( firstLineHeader ) { if ( readHeader ( bufferedReader , parseError ) == null ) { if ( parseError != null && parseError . isError ( ) ) { parseErrors . add ( parseError ) ; } return null ; } } return readRows ( bufferedReader , parseErrors ) ; } finally { bufferedReader . close ( ) ; } }
Read in all of the entities in the reader passed in . It will use an internal buffered reader .