org.apache.lucene.analysis.miscellaneous

## Class SingleTokenTokenStream

- java.lang.Object
- - org.apache.lucene.util.AttributeSource
  - - org.apache.lucene.analysis.TokenStream
    - - org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream

- All Implemented Interfaces:
    Closeable, AutoCloseable

  Deprecated.
  Do not use this anymore!

      @Deprecated
      public final class SingleTokenTokenStream
      extends TokenStream

  A `TokenStream` containing a single token.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

      `AttributeSource.State`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.analysis.TokenStream

      `DEFAULT_TOKEN_ATTRIBUTE_FACTORY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleTokenTokenStream(Token token)` Deprecated.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Token` | `getToken()` Deprecated.
    `boolean` | `incrementToken()` Deprecated.
    `void` | `reset()` Deprecated.
    `void` | `setToken(Token token)` Deprecated.

    - ### Methods inherited from class org.apache.lucene.analysis.TokenStream

      `close, end`

    - ### Methods inherited from class org.apache.lucene.util.AttributeSource

      `addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SingleTokenTokenStream

          public SingleTokenTokenStream(Token token)

      Deprecated.

  - ### Method Detail

    - #### incrementToken

          public final boolean incrementToken()

      Deprecated.
      Specified by:
        `incrementToken` in class `TokenStream`

    - #### reset

          public void reset()

      Deprecated.
      Overrides:
        `reset` in class `TokenStream`

    - #### getToken

          public Token getToken()

      Deprecated.

    - #### setToken

          public void setToken(Token token)

      Deprecated.

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