|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.StringUtils
public class StringUtils
Utility functions for manipulating string data.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static String |
addLineBreaks(String s,
int lineLength)
Add line breaks to the string. |
static boolean |
equals(String str1,
String str2)
Make a null safe equals comparison of strings. |
static String |
lineSeparator()
|
static String |
removeLineBreaks(String string)
Remove line breaks from the string. |
static String |
removeWhitespace(String string)
Returns a string which has all whitespace characters removed from the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static String lineSeparator()
public static String addLineBreaks(String s,
int lineLength)
Add line breaks to the string.
s - the string to convert.lineLength - the number of characters per line. Use 0 or negative to omit the line breaks.
String with lineSeparator() added after every lineLength characters.public static String removeLineBreaks(String string)
Remove line breaks from the string.
Replaces all newline ("\n") and linefeed ("\r") characters in string with an empty string.
string - the string to convert
public static String removeWhitespace(String string)
public static boolean equals(String str1,
String str2)
str1 - first stringstr2 - second string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||