Documentation of 'org.opengis.feature.FeatureIterator' Java class
FeatureIterator
org.opengis.feature

Interface FeatureIterator

  • All Superinterfaces:
    java.util.Iterator<Feature>


    public interface FeatureIterator
    extends java.util.Iterator<Feature>
    Extends the Iterator interface to include a close method for cleaning up connections to a persistent store.
    Since:
    GeoAPI 2.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void close()
      If applicable, closes any connection to a persistent store that backs this iterator.
      boolean hasNext()
      Method inherited from Iterator that indicates whether there's another feature available.
      void remove()
      If supported by the underlying FeatureCollection, invoking this method will remove the last Feature returned by Iterator.next().
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, next
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws BackingStoreException
        Method inherited from Iterator that indicates whether there's another feature available.

        Because no exceptions are thrown in the Iterator interface, any I/O exceptions that occur while executing this method must be wrapped in a BackingStoreException before being thrown.

        Specified by:
        hasNext in interface java.util.Iterator<Feature>
        Throws:
        BackingStoreException - If an error occurs while fetching the feature.
      • remove

        void remove()
             throws java.lang.UnsupportedOperationException,
                    BackingStoreException
        If supported by the underlying FeatureCollection, invoking this method will remove the last Feature returned by Iterator.next().
        Specified by:
        remove in interface java.util.Iterator<Feature>
        Throws:
        java.lang.UnsupportedOperationException - If removing items is not supported by the underlying collection.
        BackingStoreException - If an error occurs while removing the feature.
      • close

        void close()
            throws java.io.IOException
        If applicable, closes any connection to a persistent store that backs this iterator.
        Throws:
        java.io.IOException - if an error occurs while closing the iterator.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.