List of usage examples for org.apache.lucene.analysis Token reinit
public void reinit(Token prototype)
From source file:org.apache.uima.lucas.indexer.test.util.CollectionTokenStream.java
License:Apache License
@Override public Token next(Token nextToken) throws IOException { if (tokenIterator.hasNext()) { Token nextCollectionToken = tokenIterator.next(); nextToken.reinit(nextCollectionToken); return nextToken; } else/*from w ww . j a va 2s. c o m*/ return null; }