org.apache.uima.lucas.indexer.util
Class TokenStreamStringConcatenator
java.lang.Object
org.apache.uima.lucas.indexer.util.TokenStreamStringConcatenator
public class TokenStreamStringConcatenator
- extends Object
Method Summary |
String |
tokenStreamToStringWithDelimiter(org.apache.lucene.analysis.TokenStream ts,
String delimiter)
builds a string from the tokens that can be found in tokenStream and delimites the tokens with
a given delimiter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenStreamStringConcatenator
public TokenStreamStringConcatenator()
tokenStreamToStringWithDelimiter
public String tokenStreamToStringWithDelimiter(org.apache.lucene.analysis.TokenStream ts,
String delimiter)
throws IOException
- builds a string from the tokens that can be found in tokenStream and delimites the tokens with
a given delimiter
- Parameters:
ts
-
- Returns:
- a sting made of tokens
- Throws:
IOException
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.