Package org.dom4j.util
Class StringUtils
java.lang.Object
org.dom4j.util.StringUtils
Contains utilities related to strings.
- Author:
- Marián Petrá?
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
endsWithWhitespace
(CharSequence charSeq) Finds out if the given character sequence ends with a whitespace character.static boolean
startsWithWhitespace
(CharSequence charSeq) Finds out if the given character sequence starts with a whitespace character.
-
Method Details
-
startsWithWhitespace
Finds out if the given character sequence starts with a whitespace character.- Returns:
true
if the given character sequence is not empty and starts with a whitespace character;false
otherwise- Throws:
NullPointerException
- if the given character sequence isnull
-
endsWithWhitespace
Finds out if the given character sequence ends with a whitespace character.- Returns:
true
if the given character sequence is not empty and ends with a whitespace character;false
otherwise- Throws:
NullPointerException
- if the given character sequence isnull
-