SingleTokenTokenStream (Lucene 2.4.1 API)
Keywords: org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.analysis.miscellaneous
Class SingleTokenTokenStream

    java.lang.Object
      org.apache.lucene.analysis.TokenStream
          org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream

    public class SingleTokenTokenStream

extends TokenStream

A token stream containing a single token.

Constructor Summary
`SingleTokenTokenStream(Token token)`

Method Summary
`Token` | `getToken()`
`Token` | `next(Token reusableToken)`
`void` | `reset()`
`void` | `setToken(Token token)`

Methods inherited from class org.apache.lucene.analysis.TokenStream
`close, next`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SingleTokenTokenStream

    public SingleTokenTokenStream(Token token)

Method Detail

### next

    public Token next(Token reusableToken)
               throws IOException

  Overrides:
    `next` in class `TokenStream`
  Throws:
    `IOException`

### reset

    public void reset()
               throws IOException

  Overrides:
    `reset` in class `TokenStream`
  Throws:
    `IOException`

### getToken

    public Token getToken()

### setToken

    public void setToken(Token token)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.