- java.lang.Object
-
- org.glassfish.jaxb.core.WhiteSpaceProcessor
-
public abstract class WhiteSpaceProcessor extends 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 CharSequencecollapse(CharSequence text)This is usually the biggest processing bottleneck.static Stringcollapse(String text)static booleanisWhiteSpace(char ch)returns true if the specified char is a white space character.static booleanisWhiteSpace(CharSequence s)Returns true if the specified string is all whitespace.protected static booleanisWhiteSpaceExceptSpace(char ch)Returns true if the specified char is a white space character but not 0x20.static CharSequencereplace(CharSequence text)static Stringreplace(String text)static CharSequencetrim(CharSequence text)Equivalent ofString.trim().
-
-
-
Method Detail
-
replace
public static CharSequence replace(CharSequence text)
- Since:
- 2.0
-
trim
public static CharSequence trim(CharSequence text)
Equivalent ofString.trim().- Since:
- 2.0
-
collapse
public static CharSequence collapse(CharSequence text)
This is usually the biggest processing bottleneck.- Since:
- 2.0
-
isWhiteSpace
public static boolean isWhiteSpace(CharSequence s)
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.
-
-