Shorthand for calling {@link #clear}, {@link #SetTermBuffer(char[], int, int)}, {@link #setStartOffset}, {@link #setEndOffset} {@link #setType} on Token.DEFAULT_TYPE

Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual Token Reinit(
	char[] newTermBuffer,
	int newTermOffset,
	int newTermLength,
	int newStartOffset,
	int newEndOffset
)
Visual Basic
Public Overridable Function Reinit ( _
	newTermBuffer As Char(), _
	newTermOffset As Integer, _
	newTermLength As Integer, _
	newStartOffset As Integer, _
	newEndOffset As Integer _
) As Token
Visual C++
public:
virtual Token^ Reinit(
	array<wchar_t>^ newTermBuffer, 
	int newTermOffset, 
	int newTermLength, 
	int newStartOffset, 
	int newEndOffset
)

Parameters

newTermBuffer
Type: array<System..::..Char>[]()[][]

[Missing <param name="newTermBuffer"/> documentation for "M:Lucene.Net.Analysis.Token.Reinit(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newTermOffset
Type: System..::..Int32

[Missing <param name="newTermOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Reinit(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newTermLength
Type: System..::..Int32

[Missing <param name="newTermLength"/> documentation for "M:Lucene.Net.Analysis.Token.Reinit(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newStartOffset
Type: System..::..Int32

[Missing <param name="newStartOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Reinit(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

newEndOffset
Type: System..::..Int32

[Missing <param name="newEndOffset"/> documentation for "M:Lucene.Net.Analysis.Token.Reinit(System.Char[],System.Int32,System.Int32,System.Int32,System.Int32)"]

Return Value

this Token instance

See Also