org.geotools.data.wfs.v1_0_0
Class WFSFeatureReader

Object
  extended by Thread
      extended by FCBuffer
          extended by WFSFeatureReader
All Implemented Interfaces:
Closeable, Runnable, FeatureReader<SimpleFeatureType,SimpleFeature>

public class WFSFeatureReader
extends FCBuffer

DOCUMENT ME!

Author:
dzwiers

Nested Class Summary
 
Nested classes/interfaces inherited from class FCBuffer
FCBuffer.StopException
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class FCBuffer
exception, FINISH, ft, logger, state, STOP
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static WFSFeatureReader getFeatureReader(InputStream is, int capacity, int timeout, WFSTransactionState transaction, SimpleFeatureType ft)
           
static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity, int timeout, WFSTransactionState transaction, SimpleFeatureType ft)
           
 boolean hasNext()
          Query whether this FeatureReader has another Feature.
protected  void initHints(XMLHandlerHints hints)
          Called before parsing the FeatureCollection.
 SimpleFeature next()
          Reads the next Feature in the FeatureReader.
 void run()
           
 
Methods inherited from class FCBuffer
addFeature, close, getCapacity, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureType, getInternalState, getSize, getTimeout, peek, resetTimer
 
Methods inherited from class Thread
activeCount, checkAccess, clone, 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 Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFeatureReader

public static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document,
                                                                              int capacity,
                                                                              int timeout,
                                                                              WFSTransactionState transaction,
                                                                              SimpleFeatureType ft)
                                                                       throws SAXException
Parameters:
document -
capacity -
timeout -
transaction -
ft -
Returns:
WFSFeatureReader
Throws:
SAXException

getFeatureReader

public static WFSFeatureReader getFeatureReader(InputStream is,
                                                int capacity,
                                                int timeout,
                                                WFSTransactionState transaction,
                                                SimpleFeatureType ft)
                                         throws SAXException
Parameters:
is -
capacity -
timeout -
transaction -
ft -
Returns:
WFSFeatureReader
Throws:
SAXException

run

public void run()
Specified by:
run in interface 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 IOException
Description copied from interface: FeatureReader
Query whether this FeatureReader has another Feature.

Specified by:
hasNext in interface FeatureReader<SimpleFeatureType,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:
IOException - If an error occurs determining if there are more Features.
See Also:
FeatureReader.hasNext()

next

public SimpleFeature next()
                   throws IOException,
                          NoSuchElementException
Description copied from interface: FeatureReader
Reads the next Feature in the FeatureReader.

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


Copyright © 1996-2014 Geotools. All Rights Reserved.