java.lang.Objectorg.objectweb.telosys.util.NumUtil
Method Summary | |
static java.lang.String |
formatInt(int iNbr,
int iMinLength)
Formats an int value in order to provide the expected number of characters ( adds '0' if necessary ) |
static java.lang.String |
formatInt(int iNbr,
int iLength,
boolean bFixedSize,
char cAppended)
Formats an int value in order to provide the expected number of characters |
static java.lang.String |
formatInt(int iValue,
java.lang.String sFormat)
Formats an int value using a standard Java format string |
static java.lang.String |
formatInt(int iValue,
java.lang.String sFormat,
java.lang.String sLanguage)
Formats an int value using a standard Java format string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String formatInt(int iNbr, int iLength, boolean bFixedSize, char cAppended)
iNbr
- the value to formatiLength
- the minimum size expectedbFixedSize
- true for fixed size ( cut the string if necessary )cAppended
- the character to add at the beginning of the string ( e.g. '0' or ' ' )
public static java.lang.String formatInt(int iNbr, int iMinLength)
iNbr
- :iMinLength
- :
public static java.lang.String formatInt(int iValue, java.lang.String sFormat, java.lang.String sLanguage)
iValue
- : the value to formatsFormat
- : Standard Java ChoiceFormat or DecimalFormatsLanguage
- : ISO Language Code ( ie "fr"=French, "en"=English )
public static java.lang.String formatInt(int iValue, java.lang.String sFormat)
iValue
- : the value to formatsFormat
- : Standard Java ChoiceFormat or DecimalFormat