|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.geotools.xml.gml.FCBuffer
public class FCBuffer
Feature Buffer ... acts as a FeatureReader
Nested Class Summary | |
---|---|
static class |
FCBuffer.StopException
DOCUMENT ME! |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected org.xml.sax.SAXException |
exception
|
static int |
FINISH
Last feature is in the buffer |
protected org.opengis.feature.simple.SimpleFeatureType |
ft
|
protected static java.util.logging.Logger |
logger
DOCUMENT ME! |
protected int |
state
DOCUMENT ME! |
static int |
STOP
DOCUMENT ME! |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
protected |
FCBuffer(java.net.URI document,
int capacity,
int timeout,
org.opengis.feature.simple.SimpleFeatureType ft)
|
Method Summary | |
---|---|
protected boolean |
addFeature(org.opengis.feature.simple.SimpleFeature f)
Adds a feature to the buffer |
void |
close()
Release the underlying resources associated with this stream. |
int |
getCapacity()
DOCUMENT ME! |
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(java.net.URI document,
int capacity)
The prefered method of using this class, this will return the Feature Reader for the document specified, using the specified buffer capacity. |
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(java.net.URI document,
int capacity,
int timeout)
|
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(java.net.URI document,
int capacity,
int timeout,
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,
org.opengis.feature.simple.SimpleFeatureType ft)
|
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
DOCUMENT ME! |
int |
getInternalState()
|
int |
getSize()
DOCUMENT ME! |
int |
getTimeout()
DOCUMENT ME! |
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. |
org.opengis.feature.simple.SimpleFeature |
peek()
|
void |
resetTimer()
|
void |
run()
|
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 |
Field Detail |
---|
public static final int FINISH
public static final int STOP
protected static java.util.logging.Logger logger
protected int state
protected org.xml.sax.SAXException exception
protected org.opengis.feature.simple.SimpleFeatureType ft
Constructor Detail |
---|
protected FCBuffer(java.net.URI document, int capacity, int timeout, org.opengis.feature.simple.SimpleFeatureType ft)
document
- capacity
- timeout
- ft
- NullableMethod Detail |
---|
public int getSize()
public int getCapacity()
public int getTimeout()
protected boolean addFeature(org.opengis.feature.simple.SimpleFeature f)
Adds a feature to the buffer
f
- Feature to add
public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document, int capacity) throws org.xml.sax.SAXException
The prefered method of using this class, this will return the Feature Reader for the document specified, using the specified buffer capacity.
document
- URL to parsecapacity
-
org.xml.sax.SAXException
public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document, int capacity, org.opengis.feature.simple.SimpleFeatureType ft) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document, int capacity, int timeout) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.net.URI document, int capacity, int timeout, org.opengis.feature.simple.SimpleFeatureType ft) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
getFeatureType
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
FeatureReader.getFeatureType()
public org.opengis.feature.simple.SimpleFeature next() throws java.io.IOException, java.util.NoSuchElementException
FeatureReader
next
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs reading the Feature.
java.util.NoSuchElementException
- If there are no more Features in the
Reader.FeatureReader.next()
public org.opengis.feature.simple.SimpleFeature peek() throws java.io.IOException, java.util.NoSuchElementException
java.io.IOException
java.util.NoSuchElementException
FeatureReader.next()
public boolean hasNext() throws java.io.IOException
FeatureReader
hasNext
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs determining if there are more
Features.FeatureReader.hasNext()
public void close()
FeatureReader
close
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
FeatureReader.close()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Runnable.run()
protected void initHints(XMLHandlerHints hints)
public int getInternalState()
public void resetTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |