com.sun.xml.bind
Class WhiteSpaceProcessor

java.lang.Object
  extended by com.sun.xml.bind.WhiteSpaceProcessor

public abstract class WhiteSpaceProcessor
extends java.lang.Object

Processes white space normalization.

Since:
1.0

Constructor Summary
WhiteSpaceProcessor()
           
 
Method Summary
static java.lang.String collapse(java.lang.String text)
          This is usually the biggest processing bottleneck.
protected 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.
static java.lang.String replace(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteSpaceProcessor

public WhiteSpaceProcessor()
Method Detail

replace

public static java.lang.String replace(java.lang.String text)

collapse

public static java.lang.String collapse(java.lang.String text)
This is usually the biggest processing bottleneck.


isWhiteSpace

protected 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.