org.tm4j.vtl.extractors
Class WhitespaceCompressor

java.lang.Object
  extended byorg.tm4j.vtl.extractors.WhitespaceCompressor
All Implemented Interfaces:
uk.co.jezuk.mango.UnaryFunction

public class WhitespaceCompressor
extends java.lang.Object
implements uk.co.jezuk.mango.UnaryFunction

A simple text processing function which normalizes whitespace in a similar manner to an XML processor. All white-space characters are converted to a space, and runs of multiple spaces are compressed to a sinlge space.


Constructor Summary
WhitespaceCompressor()
           
 
Method Summary
 java.lang.Object fn(java.lang.Object x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhitespaceCompressor

public WhitespaceCompressor()
Method Detail

fn

public java.lang.Object fn(java.lang.Object x)
Specified by:
fn in interface uk.co.jezuk.mango.UnaryFunction