|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.util.StringUtil
public class StringUtil
Various string utility methods
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
chomp(String theLine)
Removes any line separators (\r ot \n) from the end of a string and returns that string |
static int |
countLines(String theString)
Counts the number of lines in a string by counting the number of "\n" or "\r" or "\r\n" sequences which appear in it |
static String |
replace(String theString,
String theMatch,
String theReplacement)
Search within a string and replace one substring with another. |
static void |
validateNotEmpty(String theValue)
Throws an IllegalArgumentException if the value is an empty string or null |
| 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 int countLines(String theString)
public static String chomp(String theLine)
public static void validateNotEmpty(String theValue)
public static String replace(String theString,
String theMatch,
String theReplacement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||