|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.dataformat.bindy.FormatFactory
public final class FormatFactory
Factory to return Format classes for a given type.
| Method Summary | |
|---|---|
static Format<?> |
getFormat(java.lang.Class<?> clazz,
java.lang.String pattern,
java.lang.String locale,
int precision)
Retrieves the format to use for the given type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Format<?> getFormat(java.lang.Class<?> clazz,
java.lang.String pattern,
java.lang.String locale,
int precision)
throws java.lang.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.
java.lang.IllegalArgumentException - if not suitable formatter is found
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||