Package fr.gouv.vitam.worker.core.distribution

# Class JsonLineGenericIterator<T>

java.lang.Object
fr.gouv.vitam.worker.core.distribution.JsonLineGenericIterator<T>

All Implemented Interfaces:
  `CloseableIterator<T>`, `VitamAutoCloseable`, `AutoCloseable`, `Iterator<T>`

public class JsonLineGenericIterator<T> extends Object implements CloseableIterator<T>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JsonLineGenericIterator(InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `boolean`
  `hasNext()`
  `T`
  `next()`
  `void`
  `skip()`
  `Stream<T>`
  `stream()`

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

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

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, remove`

- ## Constructor Details

  - ### JsonLineGenericIterator

    public JsonLineGenericIterator(InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<T>`

  - ### next

    public T next()
    Specified by:
      `next` in interface `Iterator<T>`

  - ### skip

    public void skip()

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `VitamAutoCloseable`

  - ### stream

    public Stream<T> stream()