Package fr.gouv.vitam.common.jsonl
Class JsonLineIterator<T>
java.lang.Object
fr.gouv.vitam.common.jsonl.JsonLineIterator<T>
- All Implemented Interfaces:
CloseableIterator<T>,VitamAutoCloseable,AutoCloseable,Iterator<T>
-
Constructor Summary
ConstructorsConstructorDescriptionJsonLineIterator(InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
JsonLineIterator
public JsonLineIterator(InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
-
-
Method Details
-
fromFile
public static <T> JsonLineIterator<T> fromFile(File file, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) throws IOException - Throws:
IOException
-
hasNext
public boolean hasNext() -
next
-
skip
public void skip() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVitamAutoCloseable
-
stream
-