Class JsonLineGenericIterator<T>
- java.lang.Object
-
- fr.gouv.vitam.worker.core.distribution.JsonLineGenericIterator<T>
-
- All Implemented Interfaces:
CloseableIterator<T>
,VitamAutoCloseable
,java.lang.AutoCloseable
,java.util.Iterator<T>
public class JsonLineGenericIterator<T> extends java.lang.Object implements CloseableIterator<T>
-
-
Constructor Summary
Constructors Constructor Description JsonLineGenericIterator(java.io.InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
T
next()
void
skip()
java.util.stream.Stream<T>
stream()
-
-
-
Constructor Detail
-
JsonLineGenericIterator
public JsonLineGenericIterator(java.io.InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
skip
public void skip()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
-
stream
public java.util.stream.Stream<T> stream()
-
-