util
Class ReplaceWhitespace

java.lang.Object
  extended by util.ReplaceWhitespace

public class ReplaceWhitespace
extends Object

A class to replace whitespace chars using a look-up table and a default replacement.


Field Summary
private static String DEFWHSP
           
private static Map LOOKUP
           
 
Constructor Summary
ReplaceWhitespace()
           
 
Method Summary
static String remove(String in)
          Converts each char found in LOOKUP into the appropriate mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOOKUP

private static final Map LOOKUP

DEFWHSP

private static final String DEFWHSP
See Also:
Constant Field Values
Constructor Detail

ReplaceWhitespace

public ReplaceWhitespace()
Method Detail

remove

public static String remove(String in)
Converts each char found in LOOKUP into the appropriate mapping. If a whitespace-char is found that is not in the table, it is replaced with the DEFWHSP.