com.walmart.openapi
Class DataFeedManager.FeedIterator

java.lang.Object
  extended by com.walmart.openapi.DataFeedManager.FeedIterator
Enclosing class:
DataFeedManager

public static class DataFeedManager.FeedIterator
extends java.lang.Object

Reads a JsonParser to extract a list of items and then closes the socket.


Constructor Summary
DataFeedManager.FeedIterator(com.fasterxml.jackson.core.JsonParser jsonParser)
           
 
Method Summary
 void close()
          Close the stream.
 void finalize()
          If user forgets to clean up the resources, close the socket.
 boolean hasNext()
          Retruns true if there is another item in the feed to be consumed else returns false.
 Item next()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFeedManager.FeedIterator

public DataFeedManager.FeedIterator(com.fasterxml.jackson.core.JsonParser jsonParser)
                             throws java.io.IOException,
                                    FeedParseException
Throws:
java.io.IOException
FeedParseException
Method Detail

hasNext

public boolean hasNext()
Retruns true if there is another item in the feed to be consumed else returns false.

Returns:
true or false

next

public Item next()
          throws java.io.IOException
Returns:
Returns the next item in the feed to be consumed.
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the stream.

Throws:
java.io.IOException

finalize

public void finalize()
              throws java.lang.Throwable
If user forgets to clean up the resources, close the socket.

Overrides:
finalize in class java.lang.Object
Throws:
java.io.IOException
java.lang.Throwable