
xmlparser.utils.Builder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplexml Show documentation
Show all versions of simplexml Show documentation
A clean and simple XML parser, serializer, and deserializer.
The newest version!
package xmlparser.utils;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
public enum Builder {;
private static final NumberFormat NUMBER_FORMAT = NumberFormat.getInstance();
public static Number toNumber(final String s) {
try {
return NUMBER_FORMAT.parse(s);
}
catch (final ParseException e) {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy