Top Description Constructors Methods
org.dom4j.util

public final Class StringUtils

extends Object
Class Inheritance

Contains utilities related to strings.
Author
Marián Petráš

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the given character sequence is not empty and ends with a whitespace character; false otherwise
endsWithWhitespace
(final CharSequence charSeq)

Finds out if the given character sequence ends with a whitespace character.

public static boolean

Returns:

true if the given character sequence is not empty and starts with a whitespace character; false otherwise
startsWithWhitespace
(final CharSequence charSeq)

Finds out if the given character sequence starts with a whitespace character.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StringUtilsback to summary
private StringUtils()

Method Detail

endsWithWhitespaceback to summary
public static boolean endsWithWhitespace(final CharSequence charSeq)

Finds out if the given character sequence ends with a whitespace character.

Returns:boolean

true if the given character sequence is not empty and ends with a whitespace character; false otherwise

Exceptions
NullPointerException:
if the given character sequence is null
startsWithWhitespaceback to summary
public static boolean startsWithWhitespace(final CharSequence charSeq)

Finds out if the given character sequence starts with a whitespace character.

Returns:boolean

true if the given character sequence is not empty and starts with a whitespace character; false otherwise

Exceptions
NullPointerException:
if the given character sequence is null