Apache Lucene.Net 2.4.0 Class Library API

Token.ResizeTermBuffer Method 

Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next operation is to change the contents of the term buffer use {@link #setTermBuffer(char[], int, int)}, {@link #setTermBuffer(String)}, or {@link #setTermBuffer(String, int, int)}, to optimally combine the resize with the setting of the termBuffer.

public virtual char[] ResizeTermBuffer(
   int newSize
);

Parameters

newSize
minimum size of the new termBuffer

Return Value

newly created termBuffer with length >= newSize

See Also

Token Class | Lucene.Net.Analysis Namespace