|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.util.StringUtilities
public class StringUtilities
A simple string utilities class.
| Field Summary | |
|---|---|
static String |
CRLF
the CRLF for use in String manipulation |
| Method Summary | |
|---|---|
static String |
blankToNullString(String stringToCheckForBlank)
Checks a String to see if it's blank, and if so returns null (the opposite of nullToBlankString. |
static boolean |
checkNullBlankString(String stringToCheck)
Checks a String to see if it's value is null or blank |
static String |
createMethodString(Method method,
String lineBreak)
Creates a string representation of a reflection method for example
myMethod(String, String) throws Exception
|
static String |
getLastToken(String tokenString,
String delimeter)
Gets the last token in a StringTokenizer. |
static String |
nullToBlankString(String stringToCheckForNull)
Checks a String to see if it's value is null, and if so returns a blank string. |
static String |
replaceNullOrBlankStringWithNonBreakingSpace(String stringToCheckForNull)
Checks a String to see if it's value is null or blank, and if so returns a non-breaking space. |
static String |
stringArrayToCommaDelimitedStringList(String[] stringArray)
Changes a string array into a comma delimted list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CRLF
| Method Detail |
|---|
public static String getLastToken(String tokenString,
String delimeter)
tokenString - - the string to get the last token fromdelimeter - - the delimeter of the string
public static String nullToBlankString(String stringToCheckForNull)
stringToCheckForNull - - the string to check for null
public static boolean checkNullBlankString(String stringToCheck)
stringToCheck - - the string to check for blank or null
public static String blankToNullString(String stringToCheckForBlank)
nullToBlankString.
stringToCheckForBlank - the string to check for blank
public static String replaceNullOrBlankStringWithNonBreakingSpace(String stringToCheckForNull)
stringToCheckForNull - - the string to check for null or blank
public static String createMethodString(Method method,
String lineBreak)
myMethod(String, String) throws Exception
method - - the reflection methodlineBreak - - the type of line break usually \n or <br>
public static String stringArrayToCommaDelimitedStringList(String[] stringArray)
stringArray - - The string array to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||