org.apache.uima.lucas.indexer.util
Class TokenStreamStringConcatenator

java.lang.Object
  extended by org.apache.uima.lucas.indexer.util.TokenStreamStringConcatenator

public class TokenStreamStringConcatenator
extends Object


Constructor Summary
TokenStreamStringConcatenator()
           
 
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
 

Constructor Detail

TokenStreamStringConcatenator

public TokenStreamStringConcatenator()
Method Detail

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.