|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsky.common.util.StringUtil
Additional functions for manipulating strings.
$RCSfile: StringUtil.java,v $
$Revision: 1.3 $
$Date: 2005/04/24 03:14:03 $
| Constructor Summary | |
StringUtil()
|
|
| Method Summary | |
static java.lang.String |
convert(java.lang.String original,
int nType)
Used to convert normal strings into corresponding strings that are formatted as per SQL or HTML syntax rules. |
static boolean |
isNotNull(java.lang.String str)
Check if a string is either null or empty. |
static boolean |
isNull(java.lang.String str)
Check if a string is either null or empty. |
static java.lang.String |
replace(java.lang.String str,
java.lang.String ot,
java.lang.String token,
boolean rflg)
Replaces any occurances of substring ot in string str with string token |
static java.lang.String |
replaceNL(java.lang.String str,
java.lang.String token,
boolean rflg)
Replaces any new lines in input string str with token string token |
| 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 java.lang.String replace(java.lang.String str,
java.lang.String ot,
java.lang.String token,
boolean rflg)
str - input string.ot - substring that will be searched for in the input string.token - token string for replacing substrings within input strings.rflg - Not currently used. Set to either true or false.
public static java.lang.String replaceNL(java.lang.String str,
java.lang.String token,
boolean rflg)
str - input string.token - token that will replace new line characters input string.
public static java.lang.String convert(java.lang.String original,
int nType)
original - input string that needs to be transformed.nType - format (SkyConst.DATA_SQL or SkyConst.DATA_HTML) of the input string.
public static boolean isNotNull(java.lang.String str)
public static boolean isNull(java.lang.String str)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||