Class ODataBatchLineIteratorImpl
java.lang.Object
org.apache.olingo.client.core.communication.request.batch.ODataBatchLineIteratorImpl
- All Implemented Interfaces:
Iterator<String>,ODataBatchLineIterator
Batch line iterator class.
-
Constructor Summary
ConstructorsConstructorDescriptionODataBatchLineIteratorImpl(org.apache.commons.io.LineIterator batchLineIterator) Constructor. -
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
-
Constructor Details
-
ODataBatchLineIteratorImpl
public ODataBatchLineIteratorImpl(org.apache.commons.io.LineIterator batchLineIterator) Constructor.- Parameters:
batchLineIterator- stream line iterator.
-
-
Method Details
-
hasNext
public boolean hasNext()Checks if batch has next line.- Specified by:
hasNextin interfaceIterator<String>- Specified by:
hasNextin interfaceODataBatchLineIterator- Returns:
- 'TRUE' if has next line; 'FALSE' otherwise.
-
next
Gets next line.- Specified by:
nextin interfaceIterator<String>- Specified by:
nextin interfaceODataBatchLineIterator- Returns:
- next line.
-
nextLine
Gets next line.- Specified by:
nextLinein interfaceODataBatchLineIterator- Returns:
- next line.
-
remove
public void remove()Unsupported operation. -
getCurrent
Gets last cached line (the current one).- Specified by:
getCurrentin interfaceODataBatchLineIterator- Returns:
- last cached line; null if
next()method never called
-