Creates a TokenStream that is allowed to be re-used from the previous time that the same thread called this method. Callers that do not need to use more than one TokenStream at the same time from this analyzer should use this method for better performance.
This method uses {@link #createComponents(String,Reader)} to obtain aninstance of {@link TokenStreamComponents}. It returns the sink of the components and stores the components internally. Subsequent calls to this method will reuse the previously stored components if and only if the {@link TokenStreamComponents#reset(Reader)} method returnedtrue. Otherwise a new instance of {@link TokenStreamComponents} is created.
@param fieldName the name of the field the created TokenStream is used for
@param reader the reader the streams source reads from
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.