|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.WhiteSpaceProcessor
public abstract class WhiteSpaceProcessor
Processes white space normalization.
Constructor Summary | |
---|---|
WhiteSpaceProcessor()
|
Method Summary | |
---|---|
static CharSequence |
collapse(CharSequence text)
This is usually the biggest processing bottleneck. |
static String |
collapse(String text)
|
static boolean |
isWhiteSpace(char ch)
returns true if the specified char is a white space character. |
static boolean |
isWhiteSpace(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 CharSequence |
replace(CharSequence text)
|
static String |
replace(String text)
|
static CharSequence |
trim(CharSequence text)
Equivalent of String.trim() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WhiteSpaceProcessor()
Method Detail |
---|
public static String replace(String text)
public static CharSequence replace(CharSequence text)
public static CharSequence trim(CharSequence text)
String.trim()
.
public static String collapse(String text)
public static CharSequence collapse(CharSequence text)
public static final boolean isWhiteSpace(CharSequence s)
public static final boolean isWhiteSpace(char ch)
protected static final boolean isWhiteSpaceExceptSpace(char ch)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |