lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: TokenStream and Token APIs
Date Mon, 13 Oct 2008 19:34:57 GMT
Michael Busch wrote:
>     public abstract boolean nextToken() throws IOException;

What's the point of a separate Token and TokenStream if there's only a 
single Token per TokenStream?  If that's really the direction we'll go, 
then all of the Token methods should be on TokenStream, and Token should 
disappear.  Are there cases where a stream might switch token classes 
midstream?  If not, then a single, combined API should suffice.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message