![JAR search and dependency download from the Maven repository](/logo.png)
com.fredericboisguerin.excel.converter.AbstractConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-reader-writer Show documentation
Show all versions of excel-reader-writer Show documentation
A library to read/write excel files with simple descriptions of the model
The newest version!
package com.fredericboisguerin.excel.converter;
/**
* Created by fboisguerin on 22/07/2015.
*/
abstract class AbstractConverter implements Converter {
private final Class targetClass;
protected AbstractConverter(Class targetClass) {
this.targetClass = targetClass;
}
protected abstract T innerConvert(String s);
public T convert(String s) throws ConverterException {
try {
return s == null ? null : innerConvert(s);
} catch (Exception e) {
throw new ConverterException(s, targetClass, e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy