Top Description Constructors Methods
javax.xml.bind

pack-priv abstract Class WhiteSpaceProcessor

extends Object
Class Inheritance

Processes white space normalization.
Since
1.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static String
public static CharSequence
collapse(CharSequence text)

This is usually the biggest processing bottleneck.

public static final boolean
isWhiteSpace(CharSequence s)

Returns true if the specified string is all whitespace.

public static final boolean
isWhiteSpace(char ch)

returns true if the specified char is a white space character.

protected static final boolean
isWhiteSpaceExceptSpace(char ch)

Returns true if the specified char is a white space character but not 0x20.

public static String
public static CharSequence
public static CharSequence
trim(CharSequence text)

Equivalent of String#trim().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WhiteSpaceProcessorback to summary
pack-priv WhiteSpaceProcessor()

Method Detail

collapseback to summary
public static String collapse(String text)
collapseback to summary
public static CharSequence collapse(CharSequence text)

This is usually the biggest processing bottleneck.

Since
2.0
isWhiteSpaceback to summary
public static final boolean isWhiteSpace(CharSequence s)

Returns true if the specified string is all whitespace.

isWhiteSpaceback to summary
public static final boolean isWhiteSpace(char ch)

returns true if the specified char is a white space character.

isWhiteSpaceExceptSpaceback to summary
protected static final boolean isWhiteSpaceExceptSpace(char ch)

Returns true if the specified char is a white space character but not 0x20.

replaceback to summary
public static String replace(String text)
replaceback to summary
public static CharSequence replace(CharSequence text)
Since
2.0
trimback to summary
public static CharSequence trim(CharSequence text)

Equivalent of String#trim().

Since
2.0