public void setTokenStream(TokenStream tokenStream) {if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException("TokenStream fields must be indexed and tokenized");}this.tokenStream = tokenStream;}

public virtual void SetTokenStream(TokenStream tokenStream){if (!m_type.IsIndexed || !m_type.IsTokenized){throw new System.ArgumentException("TokenStream fields must be indexed and tokenized");}if (m_type.NumericType != Documents.NumericType.NONE){throw new System.ArgumentException("cannot set private TokenStream on numeric fields");}this.m_tokenStream = tokenStream;}
