@Override
      public Entry<K, V> next() throws IOException, ClassNotFoundException {
        if (!foundNext && !moveNext()) {
          throw new NoSuchElementException();
        }
        Entry<K, V> result = next;

        foundNext = false;
        next = null;

        return result;
      }
Reads a snapshot file.

@param <K> the key type
@param <V> the value type
@param snapshot the snapshot file
@return the snapshot iterator

@throws IOException error reading the snapshot file
@throws ClassNotFoundException unable to deserialize entry
geode-core/src/main/java/org/apache/geode/internal/cache/snapshot/GFSnapshot.java