Class VPFFeatureReader

    • Field Detail

      • state

        protected ContentState state
        State used when reading file
    • Constructor Detail

      • VPFFeatureReader

        public VPFFeatureReader​(VPFFeatureType type)
        Creates a new instance of VPFFeatureReader
      • VPFFeatureReader

        public VPFFeatureReader​(ContentState contentState,
                                VPFFeatureType featureType)
                         throws IOException
        Throws:
        IOException
    • Method Detail

      • close

        public void close()
                   throws IOException
        Description copied from interface: FeatureReader
        Release the underlying resources associated with this stream.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface FeatureReader<SimpleFeatureType,​SimpleFeature>
        Throws:
        IOException - if an I/O error occurs
      • hasNext

        public boolean hasNext()
                        throws IOException
        Description copied from interface: FeatureReader
        Query whether this FeatureReader has another Feature.
        Specified by:
        hasNext in interface FeatureReader<SimpleFeatureType,​SimpleFeature>
        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.
      • getVPFFile

        public VPFFile getVPFFile​(VPFColumn column)
        Returns the VPFFile for a particular column. It will only find the first match, but that should be okay because duplicate columns will cause even bigger problems elsewhere.
        Parameters:
        column - the column to search for
        Returns:
        the VPFFile that owns this column
      • getVPFFile

        public VPFFile getVPFFile​(AttributeDescriptor column)
        Returns the VPFFile for a particular column. It will only find the first match, but that should be okay because duplicate columns will cause even bigger problems elsewhere.
        Parameters:
        column - the column to search for
        Returns:
        the VPFFile that owns this column
      • reset

        public void reset()
        Need to reset the stream for the next time Resets the iterator by resetting the stream.