org.apache.lenya.lucene.parser
Class StringCleaner

java.lang.Object
  extended by org.apache.lenya.lucene.parser.StringCleaner

public class StringCleaner
extends java.lang.Object

A utility class to convert a string to text that can be included in an XML file.


Constructor Summary
StringCleaner()
          Creates a new instance of StringCleaner
 
Method Summary
static java.lang.String clean(java.lang.String source)
          Remove all non-word characters from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringCleaner

public StringCleaner()
Creates a new instance of StringCleaner

Method Detail

clean

public static java.lang.String clean(java.lang.String source)
Remove all non-word characters from a string.



Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.