org.apache.hc.core5.http.message

## Class BasicTokenIterator

- java.lang.Object
- - org.apache.hc.core5.http.message.BasicTokenIterator

- All Implemented Interfaces:
    Iterator<String>

      public class BasicTokenIterator
      extends Object

  `Iterator` of `Header` tokens..
  Since:
    4.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicTokenIterator(Iterator<Header> headerIterator)` Creates a new instance of `BasicTokenIterator`.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `T` | `next()`
    `void` | `remove()`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicTokenIterator

          public BasicTokenIterator(Iterator<Header> headerIterator)

      Creates a new instance of `BasicTokenIterator`.
      Parameters:
        `headerIterator` - the iterator for the headers to tokenize

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator<T>`

    - #### next

          public T next()
                 throws NoSuchElementException

      Specified by:
        `next` in interface `Iterator<T>`
      Throws:
        `NoSuchElementException`

    - #### remove

          public void remove()
                      throws UnsupportedOperationException

      Specified by:
        `remove` in interface `Iterator<T>`
      Throws:
        `UnsupportedOperationException`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.