public class PercentageFormatter extends DefaultPercentageFormatter
Constructor and Description |
---|
PercentageFormatter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureFormatter(java.lang.String formatString) |
java.lang.Object |
parse(java.lang.String formatString,
java.lang.String parseThisString)
parse this string according to the format specified and return an object
|
java.lang.Object |
parseObject(java.lang.String formatThisString,
java.text.ParsePosition status) |
format, format, getLocale, getPercentageFormatHelper, setLocale
getDefaultFormatString
public java.lang.Object parse(java.lang.String formatString, java.lang.String parseThisString) throws java.text.ParseException
parse
in class DefaultPercentageFormatter
formatString
- code to define how the raw data should be parsed.parseThisString
- data which needs to be parsed.java.text.ParseException
- when unable to parse data according to
the format specified.public java.lang.Object parseObject(java.lang.String formatThisString, java.text.ParsePosition status)
parseObject
in class DefaultPercentageFormatter
formatThisString
- data which needs to be parsedstatus
- parse to start from this position
Usage of this API is not entirely thread safe.protected void configureFormatter(java.lang.String formatString)
configureFormatter
in class DefaultPercentageFormatter