public static Format<?> getFormat(Class<?> clazz, String pattern, String locale, int precision) throws Exception
clazz - represents the type of the format (String, Integer, Byte)pattern - is the pattern to be used during the formatting of the datalocale - optional locale for NumberFormat and DateFormat parsing.precision - optional scale for BigDecimal parsing.IllegalArgumentException - if not suitable formatter is foundExceptionApache CAMEL