|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.util.StringUtil
public class StringUtil
This class offers methods that are needed for handling strings.
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
bool2Char(boolean value)
Converts the given boolean to character. false = N, true = Y. |
static String |
bool2CharEmpty(boolean value)
Converts the given boolean to character. false = ' ', true = 'Y'. |
static String |
bool2Int(boolean value)
Converts the given boolean to string. false = 0, true = 1. |
static String |
intToFixedLengthString(int value,
int length)
Converts the given integer to a fixed length string by adding leading zeros to the given number that its length equals to the given length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static String bool2Int(boolean value)
value - boolean value
public static String bool2Char(boolean value)
value - boolean value
public static String bool2CharEmpty(boolean value)
value - boolean value
public static String intToFixedLengthString(int value,
int length)
value - integer value to be convertedlength - length of the output string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||