Interface FeatureReader<T extends FeatureType,​F extends Feature>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Release the underlying resources associated with this stream.
      T getFeatureType()
      Return the FeatureType this reader has been configured to create.
      boolean hasNext()
      Query whether this FeatureReader has another Feature.
      F next()
      Reads the next Feature in the FeatureReader.
    • Method Detail

      • getFeatureType

        T getFeatureType()
        Return the FeatureType this reader has been configured to create.
        Returns:
        the FeatureType of the Features this FeatureReader will create.
      • hasNext

        boolean hasNext()
                 throws IOException
        Query whether this FeatureReader has another Feature.
        Returns:
        True if there are more Features to be read. In other words, true if calls to next would return a feature rather than throwing an exception.
        Throws:
        IOException - If an error occurs determining if there are more Features.