Apache Lucene.Net 2.4.0 Class Library API

Token.TermBuffer Method 

Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use {@link #ResizeTermBuffer(int)} to increase it. After altering the buffer be sure to call {@link #setTermLength} to record the number of valid characters that were placed into the termBuffer.

public char[] TermBuffer();

See Also

Token Class | Lucene.Net.Analysis Namespace