org.sfm.utils.conv.StringToURLConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.sfm.utils.conv;
import java.net.MalformedURLException;
import java.net.URL;
public class StringToURLConverter implements Converter {
@Override
public URL convert(I in) {
try {
return new URL(String.valueOf(in));
} catch (MalformedURLException e) {
throw new ConversionException(e);
}
}
}