public interface FormatToken
| Modifier and Type | Method and Description |
|---|---|
void |
parse(ParseContext context)
Parse the context, based on the given
ParseContext. |
void |
print(java.lang.Appendable appendable,
javax.money.MonetaryAmount amount)
Formats the given
MonetaryAmount to an Appendable. |
void parse(ParseContext context) throws javax.money.format.MonetaryParseException
ParseContext.context - the current ParseContext.java.text.ParseException - if parsing fails.javax.money.format.MonetaryParseExceptionvoid print(java.lang.Appendable appendable,
javax.money.MonetaryAmount amount)
throws java.io.IOException
MonetaryAmount to an Appendable.appendable - the Appendable, not null.amount - the MonetaryAmount to be formatted, not null.java.io.IOException - thrown by the Appendable on appending.