|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.ISOCurrency
public class ISOCurrency
ISO Currency Conversion package
| Method Summary | |
|---|---|
static void |
addBundle(ResourceBundle r)
|
static void |
addBundle(String bundleName)
|
static double |
convertFromIsoMsg(String isoamount,
String currency)
Converts from an ISO Amount (12 digit string) to a double taking in consideration the number of decimal digits according to currency |
static String |
convertToIsoMsg(double amount,
String currency)
Converts an amount to an ISO Amount taking in consideration the number of decimal digits according to currency |
static Object[] |
decomposeComposedCurrency(String incurr)
|
static Currency |
getCurrency(int code)
|
static Currency |
getCurrency(String code)
|
static String |
getIsoCodeFromAlphaCode(String alphacode)
|
static void |
loadPropertiesFromClasspath(String base)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void loadPropertiesFromClasspath(String base)
public static double convertFromIsoMsg(String isoamount,
String currency)
throws IllegalArgumentException
isoamount - - The ISO amount to be converted (eg. ISOField 4)currency - - The ISO currency to be converted (eg. ISOField 49)
IllegalArgumentException - if we fail to convert the amountpublic static void addBundle(ResourceBundle r)
public static void addBundle(String bundleName)
public static String convertToIsoMsg(double amount,
String currency)
throws IllegalArgumentException
amount - - The amount to be convertedcurrency - - The ISO currency to be converted (eg. ISOField 49)
IllegalArgumentException - if we fail to convert the amount
public static Object[] decomposeComposedCurrency(String incurr)
throws IllegalArgumentException
IllegalArgumentException
public static String getIsoCodeFromAlphaCode(String alphacode)
throws IllegalArgumentException
IllegalArgumentException
public static Currency getCurrency(int code)
throws ISOException
ISOException
public static Currency getCurrency(String code)
throws ISOException
ISOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||