public interface FormatToken
Modifier and Type | Method and Description |
---|---|
void |
parse(org.javamoney.moneta.internal.format.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(org.javamoney.moneta.internal.format.ParseContext context) throws javax.money.format.MonetaryParseException
ParseContext
.context
- the current ParseContext
.javax.money.format.MonetaryParseException
- if parsing fails.void 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-2015 JavaMoney. All Rights Reserved.