Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected List<T> readData(Reader reader) throws Exception{
- List<T> items= new ArrayList<T>();
- try{
- Iterable<CSVRecord> records = CSVFormat.APPLE.withDelimiter('|').withHeader(factory.header()).withFirstRecordAsHeader().parse(reader);
- for(CSVRecord record : records){
- patients.add(factory.instance(record));
- }
- } finally {
- reader.close();
- }
- return items;
Add Comment
Please, Sign In to add comment