public class BulkResponseImpl extends java.lang.Object implements BulkResponse
BulkResponse.| Constructor and Description |
|---|
BulkResponseImpl(java.io.InputStream responseStream)
create instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes used resources.
|
protected void |
finalize() |
boolean |
hasNext()
Checks if there are more objects to read from the bulk.
|
java.util.Iterator<AnyMap> |
iterator() |
AnyMap |
next()
Parses and returns the next object.
|
void |
remove()
Currently not supported by this implementation.
|
public BulkResponseImpl(java.io.InputStream responseStream)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<AnyMap> iterator()
iterator in interface java.lang.Iterable<AnyMap>public boolean hasNext()
hasNext in interface java.util.Iterator<AnyMap>java.lang.RuntimeException - If reading the input stream fails. The IOException from the reader will be attached as the cause.public AnyMap next()
next in interface java.util.Iterator<AnyMap>java.util.NoSuchElementException - If no objects are available anymore.java.lang.RuntimeException - If reading the input stream or parsing the JSON line fails. The exception from the reader or parser will
be attached as the cause.public void remove()
remove in interface java.util.Iterator<AnyMap>java.lang.UnsupportedOperationException - always.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable