Appends this string to the text buffer, trimming whitespaces as needed.
Returns string formatted according to given format string.
Returns string formatted according to given format string.
Format strings are as for String.format
(@see java.lang.String.format).
Returns an empty sequence if text is only whitespace.
Returns an empty sequence if text is only whitespace.
the text without whitespaces.
The class
TextBufferis for creating text nodes without surplus whitespace. All occurrences of one or more whitespace in strings appended with theappendmethod will be replaced by a single space character, and leading and trailing space will be removed completely.