public interface FormatToken
| Modifier and Type | Method and Description |
|---|---|
void |
parse(ParseContext context)
Parse the context, based on the given
ParseContext. |
void |
print(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.ParseException - if parsing fails.javax.money.format.MonetaryParseExceptionvoid print(Appendable appendable, javax.money.MonetaryAmount amount) throws IOException
MonetaryAmount to an Appendable.appendable - the Appendable, not null.amount - the MonetaryAmount to be formatted, not null.IOException - thrown by the Appendable on appending.Copyright © 2012-2014 JavaMoney. All Rights Reserved.