Class StringUtils
java.lang.Object
org.dom4j.util.StringUtils
Contains utilities related to strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanendsWithWhitespace(CharSequence charSeq) Finds out if the given character sequence ends with a whitespace character.static booleanstartsWithWhitespace(CharSequence charSeq) Finds out if the given character sequence starts with a whitespace character.
-
Constructor Details
-
StringUtils
private StringUtils()
-
-
Method Details
-
startsWithWhitespace
Finds out if the given character sequence starts with a whitespace character.- Returns:
trueif the given character sequence is not empty and starts with a whitespace character;falseotherwise- Throws:
NullPointerException- if the given character sequence isnull
-
endsWithWhitespace
Finds out if the given character sequence ends with a whitespace character.- Returns:
trueif the given character sequence is not empty and ends with a whitespace character;falseotherwise- Throws:
NullPointerException- if the given character sequence isnull
-