Class FCBuffer

    • Constructor Detail

      • FCBuffer

        protected FCBuffer​(URI document,
                           int capacity,
                           int timeout,
                           SimpleFeatureType ft)
        Parameters:
        ft - Nullable
    • Method Detail

      • getSize

        public int getSize()
        Returns:
        The buffer size
      • getCapacity

        public int getCapacity()
        Returns:
        The buffer capacity
      • getTimeout

        public int getTimeout()
        Returns:
        The buffer capacity
      • addFeature

        protected boolean addFeature​(SimpleFeature f)
        Adds a feature to the buffer
        Parameters:
        f - Feature to add
        Returns:
        false if unable to add the feature
      • getFeatureReader

        public static FeatureReader<SimpleFeatureType,​SimpleFeature> getFeatureReader​(URI document,
                                                                                            int capacity)
                                                                                     throws SAXException
        The prefered method of using this class, this will return the Feature Reader for the document specified, using the specified buffer capacity.
        Parameters:
        document - URL to parse
        Throws:
        SAXException
      • 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.
        See Also:
        FeatureReader.hasNext()
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
        See Also:
        Runnable.run()
      • initHints

        protected void initHints​(XMLHandlerHints hints)
        Called before parsing the FeatureCollection. Subclasses may override to set their custom hints.
      • getInternalState

        public int getInternalState()
      • resetTimer

        public void resetTimer()