Package fr.gouv.vitam.common.model
Class JsonLineIterator<T>
- java.lang.Object
-
- fr.gouv.vitam.common.model.JsonLineIterator<T>
-
- All Implemented Interfaces:
CloseableIterator<T>
,VitamAutoCloseable
,java.lang.AutoCloseable
,java.util.Iterator<T>
public class JsonLineIterator<T> extends java.lang.Object implements CloseableIterator<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
T
next()
static <T> JsonLineIterator<T>
parseFromResponse(javax.ws.rs.core.Response response, java.lang.Class<T> clasz)
void
skip()
java.util.stream.Stream<T>
stream()
-
-
-
Method Detail
-
parseFromResponse
public static <T> JsonLineIterator<T> parseFromResponse(javax.ws.rs.core.Response response, java.lang.Class<T> clasz)
-
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()
-
-