T
- the type of object this Parser producespublic interface Parser<T>
Modifier and Type | Method and Description |
---|---|
T |
parse(String text,
Locale locale)
Parse a text String to produce a T.
|
T parse(String text, Locale locale) throws ParseException
text
- the text stringlocale
- the current user localeParseException
- when a parse exception occurs in a java.text parsing libraryIllegalArgumentException
- when a parse exception occurs