@Override
	public CsvFile readData(String filePath) throws IOException, InvalidFileException {

		Path path = Paths.get(filePath);
		List<Object[]> tokensList = new ArrayList<Object[]>();
		
		try (BufferedReader reader = Files.newBufferedReader(path, charset);) {
			
			String line = null;
			while (!StringUtils.isEmpty(line = reader.readLine())) {
				String[] tokens = line.split(separator, -1);
				
				tokensList.add(tokens);
			}
		}
		
		CsvFile result = new CsvFile();
		result.setData(tokensList);			
		
		return result;
	}
@Override
	public CsvFile readData(String filePath) throws IOException, InvalidFileException {

		Path path = Paths.get(filePath);
		List<Object[]> tokensList = new ArrayList<Object[]>();
		
		try (BufferedReader reader = Files.newBufferedReader(path, charset);) {
			
			String line = null;
			while (!StringUtils.isEmpty(line = reader.readLine())) {
				String[] tokens = line.split(separator, -1);
				
				tokensList.add(tokens);
			}
		}
		
		CsvFile result = new CsvFile();
		result.setData(tokensList);			
		
		return result;
	}
@ Override public CsvFile readData ( String filePath ) throws IOException , InvalidFileException { Path path = Paths . get ( filePath ) ; List < Object [ ] > tokensList = new ArrayList < Object [ ] > ( ) ; try ( BufferedReader reader = Files . newBufferedReader ( path , charset ) ; ) { String line = null ; while ( ! StringUtils . isEmpty ( line = reader . readLine ( ) ) ) { String [ ] tokens = line . split ( separator , - 1 ) ; tokensList . add ( tokens ) ; } } CsvFile result = new CsvFile ( ) ; result . setData ( tokensList ) ; return result ; }
/*
(non-Javadoc)
@see com.skeleton.generator.repository.dao.interfaces.MetaDataFileManager#readMataDataFile(java.lang.String)
/ * ( non - Javadoc )