@@ -0,0 +1,1502 @@
+package de.hft_stuttgart.projectindoorweb.de.hft_stuttgart.projectindoorweb.parser;%0A%0Aimport java.io.*;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.apache.commons.csv.CSVRecord;%0Aimport org.apache.commons.csv.CSVFormat;%0A%0Apublic class SensorFileReader %7B%0A    public static final String WIFI_FIELDNAME = %22WIFI%22;%0A    public static final String POSITION_FIELDNAME = %22POSI%22;%0A    public static final String ACCELERATION_FIELDNAME = %22ACCE%22;%0A    public static final String GYROSCOPE_FIELDNAME = %22GYRO%22;%0A    private String filePath;%0A%0A    public SensorFileReader(String filePath)%7B%0A        this.filePath=filePath;%0A    %7D%0A%0A    public List readPositionFromFile() throws IOException%7B%0A        return readValuesFromFile(POSITION_FIELDNAME);%0A    %7D%0A%0A    public List readAccelerationFromFile() throws IOException%7B%0A        return readValuesFromFile(ACCELERATION_FIELDNAME);%0A    %7D%0A%0A    public List readGyroscopeFromFile() throws IOException%7B%0A        return readValuesFromFile(GYROSCOPE_FIELDNAME);%0A    %7D%0A%0A    public List readWifiDataFromFile() throws IOException%7B%0A        return readValuesFromFile(WIFI_FIELDNAME);%0A    %7D%0A%0A    private List readValuesFromFile(String fieldName) throws IOException%7B%0A        List result= new ArrayList%3CString%3E();%0A        FileReader in = new FileReader(this.filePath);%0A        Iterable%3CCSVRecord%3E records=CSVFormat.EXCEL.withDelimiter(';').parse(in);%0A        for(CSVRecord record: records)%7B%0A            result.add(record.get(fieldName));%0A        %7D%0A%0A        return result;%0A    %7D%0A%7D%0A

Write example csv parser #3