org.geotools.data.wfs.v1_0_0
Class WFSFeatureReader
Object
Thread
FCBuffer
WFSFeatureReader
- All Implemented Interfaces:
- Runnable, FeatureReader<SimpleFeatureType,SimpleFeature>
public class WFSFeatureReader
- extends FCBuffer
DOCUMENT ME!
- Author:
- dzwiers
- Module:
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, 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 |
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-2009 Geotools. All Rights Reserved.