pl.droidsonroids.gradle.localization.CSVInnerParser.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-gradle-localization-plugin Show documentation
Show all versions of android-gradle-localization-plugin Show documentation
Gradle plugin for generating localized string resources
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
}
}