- java.lang.Object
-
- javax.xml.bind.WhiteSpaceProcessor
-
abstract class WhiteSpaceProcessor extends java.lang.Object
Processes white space normalization.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description WhiteSpaceProcessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.CharSequence
collapse(java.lang.CharSequence text)
This is usually the biggest processing bottleneck.static java.lang.String
collapse(java.lang.String text)
static boolean
isWhiteSpace(char ch)
returns true if the specified char is a white space character.static boolean
isWhiteSpace(java.lang.CharSequence s)
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 java.lang.CharSequence
replace(java.lang.CharSequence text)
static java.lang.String
replace(java.lang.String text)
static java.lang.CharSequence
trim(java.lang.CharSequence text)
Equivalent ofString.trim()
.
-
-
-
Method Detail
-
replace
public static java.lang.String replace(java.lang.String text)
-
replace
public static java.lang.CharSequence replace(java.lang.CharSequence text)
- Since:
- 2.0
-
trim
public static java.lang.CharSequence trim(java.lang.CharSequence text)
Equivalent ofString.trim()
.- Since:
- 2.0
-
collapse
public static java.lang.String collapse(java.lang.String text)
-
collapse
public static java.lang.CharSequence collapse(java.lang.CharSequence text)
This is usually the biggest processing bottleneck.- Since:
- 2.0
-
isWhiteSpace
public static final boolean isWhiteSpace(java.lang.CharSequence s)
Returns true if the specified string is all whitespace.
-
isWhiteSpace
public static final boolean isWhiteSpace(char ch)
returns true if the specified char is a white space character.
-
isWhiteSpaceExceptSpace
protected static final boolean isWhiteSpaceExceptSpace(char ch)
Returns true if the specified char is a white space character but not 0x20.
-
-