All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.droidsonroids.gradle.localization.CSVInnerParser.groovy Maven / Gradle / Ivy

There is a newer version: 1.0.19
Show newest version
package pl.droidsonroids.gradle.localization

import org.apache.commons.collections4.map.HashedMap
import org.apache.commons.csv.CSVParser
import org.apache.commons.csv.CSVStrategy

/**
 * Created by Alexey Puchko on 12/22/16.
 */

class CSVInnerParser extends CSVParser implements Parser {

    CSVInnerParser(Reader input) {
        super(input)
    }

    CSVInnerParser(Reader input, CSVStrategy strategy) {
        super(input, strategy)
    }

    @Override
    Map getResult() throws IOException {
        Map result = new HashedMap<>(1)
        result.put(null, getAllValues())
        return result
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy