|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.StringHelper
public final class StringHelper
Helper methods for working with Strings.
Method Summary | |
---|---|
static int |
countChar(String s,
char ch)
Counts the number of times the given char is in the string |
static String |
removeQuotes(String s)
|
static String |
sanitize(String s)
Ensures that s is friendly for a URL or file system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String sanitize(String s)
s
is friendly for a URL or file system.
s
- String to be sanitized.
s
.
NullPointerException
- if s
is null
.public static int countChar(String s, char ch)
s
- the stringch
- the char
public static String removeQuotes(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |