public interface FormatToken
| Modifier and Type | Method and Description |
|---|---|
void |
parse(org.javamoney.moneta.spi.format.ParseContext context)
Parse the context, based on the given
ParseContext. |
void |
print(Appendable appendable,
MonetaryAmount amount)
Formats the given
MonetaryAmount to an Appendable. |
void parse(org.javamoney.moneta.spi.format.ParseContext context) throws MonetaryParseException
ParseContext.context - the current ParseContext.MonetaryParseException - if parsing fails.void print(Appendable appendable, 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–2020 JavaMoney. All rights reserved.