Package com.sun.xml.bind
Class WhiteSpaceProcessor
java.lang.Object
com.sun.xml.bind.WhiteSpaceProcessor
Processes white space normalization.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequence
collapse
(CharSequence text) This is usually the biggest processing bottleneck.static String
static boolean
isWhiteSpace
(char ch) returns true if the specified char is a white space character.static boolean
Returns true if the specified string is all whitespace.protected static boolean
isWhiteSpaceExceptSpace
(char ch) Returns true if the specified char is a white space character but not 0x20.static CharSequence
replace
(CharSequence text) static String
static CharSequence
trim
(CharSequence text) Equivalent ofString.trim()
.
-
Constructor Details
-
WhiteSpaceProcessor
public WhiteSpaceProcessor()
-
-
Method Details
-
replace
-
replace
- Since:
- 2.0
-
trim
Equivalent ofString.trim()
.- Since:
- 2.0
-
collapse
-
collapse
This is usually the biggest processing bottleneck.- Since:
- 2.0
-
isWhiteSpace
Returns true if the specified string is all whitespace. -
isWhiteSpace
public static boolean isWhiteSpace(char ch) returns true if the specified char is a white space character. -
isWhiteSpaceExceptSpace
protected static boolean isWhiteSpaceExceptSpace(char ch) Returns true if the specified char is a white space character but not 0x20.
-