Top Description Constructors Methods
org.glassfish.jaxb.core

public abstract Class WhiteSpaceProcessor

extends Object
Class Inheritance

Processes white space normalization.
Since
1.0

Constructor Summary

AccessConstructor and Description
protected
WhiteSpaceProcessor()

Default constructor.

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 boolean
isWhiteSpace(CharSequence s)

Returns true if the specified string is all whitespace.

public static boolean
isWhiteSpace(char ch)

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

protected static 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
protected WhiteSpaceProcessor()

Default constructor.

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 boolean isWhiteSpace(CharSequence s)

Returns true if the specified string is all whitespace.

isWhiteSpaceback to summary
public static boolean isWhiteSpace(char ch)

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

isWhiteSpaceExceptSpaceback to summary
protected static 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