org.geotools.data.wfs.v1_0_0
Class WFSFeatureReader

java.lang.Object
  extended by java.lang.Thread
      extended by org.geotools.xml.gml.FCBuffer
          extended by org.geotools.data.wfs.v1_0_0.WFSFeatureReader
All Implemented Interfaces:
java.lang.Runnable, FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>

public class WFSFeatureReader
extends FCBuffer

DOCUMENT ME!

Author:
dzwiers

Nested Class Summary
 
Nested classes/interfaces inherited from class org.geotools.xml.gml.FCBuffer
FCBuffer.StopException
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.geotools.xml.gml.FCBuffer
exception, FINISH, ft, logger, state, STOP
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static WFSFeatureReader getFeatureReader(java.io.InputStream is, int capacity, int timeout, WFSTransactionState transaction, org.opengis.feature.simple.SimpleFeatureType ft)
           
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document, int capacity, int timeout, WFSTransactionState transaction, org.opengis.feature.simple.SimpleFeatureType ft)
           
 boolean hasNext()
          Query whether this FeatureReader has another Feature.
protected  void initHints(XMLHandlerHints hints)
          Called before parsing the FeatureCollection.
 org.opengis.feature.simple.SimpleFeature next()
          Reads the next Feature in the FeatureReader.
 void run()
           
 
Methods inherited from class org.geotools.xml.gml.FCBuffer
addFeature, close, getCapacity, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureType, getInternalState, getSize, getTimeout, peek, resetTimer
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFeatureReader

public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document,
                                                                                                                                    int capacity,
                                                                                                                                    int timeout,
                                                                                                                                    WFSTransactionState transaction,
                                                                                                                                    org.opengis.feature.simple.SimpleFeatureType ft)
                                                                                                                             throws org.xml.sax.SAXException
Parameters:
document -
capacity -
timeout -
transaction -
ft -
Returns:
WFSFeatureReader
Throws:
org.xml.sax.SAXException

getFeatureReader

public static WFSFeatureReader getFeatureReader(java.io.InputStream is,
                                                int capacity,
                                                int timeout,
                                                WFSTransactionState transaction,
                                                org.opengis.feature.simple.SimpleFeatureType ft)
                                         throws org.xml.sax.SAXException
Parameters:
is -
capacity -
timeout -
transaction -
ft -
Returns:
WFSFeatureReader
Throws:
org.xml.sax.SAXException

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class FCBuffer
See Also:
Runnable.run()

initHints

protected void initHints(XMLHandlerHints hints)
Description copied from class: FCBuffer
Called before parsing the FeatureCollection. Subclasses may override to set their custom hints.

Overrides:
initHints in class FCBuffer

hasNext

public boolean hasNext()
                throws java.io.IOException
Description copied from interface: FeatureReader
Query whether this FeatureReader has another Feature.

Specified by:
hasNext in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
Overrides:
hasNext in class FCBuffer
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:
java.io.IOException - If an error occurs determining if there are more Features.
See Also:
FeatureReader.hasNext()

next

public org.opengis.feature.simple.SimpleFeature next()
                                              throws java.io.IOException,
                                                     java.util.NoSuchElementException
Description copied from interface: FeatureReader
Reads the next Feature in the FeatureReader.

Specified by:
next in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
Overrides:
next in class FCBuffer
Returns:
The next feature in the reader.
Throws:
java.io.IOException - If an error occurs reading the Feature.
java.util.NoSuchElementException - If there are no more Features in the Reader.
See Also:
FeatureReader.next()


Copyright © 1996-2010 Geotools. All Rights Reserved.