public class FCBuffer extends Thread implements FeatureReader<SimpleFeatureType,SimpleFeature>
Modifier and Type | Class and Description |
---|---|
static class |
FCBuffer.StopException
DOCUMENT ME!
|
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected SAXException |
exception |
static int |
FINISH
Last feature is in the buffer
|
protected SimpleFeatureType |
ft |
protected static Logger |
logger
DOCUMENT ME!
|
protected int |
state
DOCUMENT ME!
|
static int |
STOP
DOCUMENT ME!
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
FCBuffer(URI document,
int capacity,
int timeout,
SimpleFeatureType ft) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addFeature(SimpleFeature f)
Adds a feature to the buffer
|
void |
close()
Release the underlying resources associated with this stream.
|
int |
getCapacity()
DOCUMENT ME!
|
static FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader(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<SimpleFeatureType,SimpleFeature> |
getFeatureReader(URI document,
int capacity,
int timeout) |
static FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader(URI document,
int capacity,
int timeout,
SimpleFeatureType ft) |
static FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader(URI document,
int capacity,
SimpleFeatureType ft) |
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.
|
SimpleFeature |
next()
Reads the next Feature in the FeatureReader.
|
SimpleFeature |
peek() |
void |
resetTimer() |
void |
run() |
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
public static final int FINISH
public static final int STOP
protected static Logger logger
protected int state
protected SAXException exception
protected SimpleFeatureType ft
protected FCBuffer(URI document, int capacity, int timeout, SimpleFeatureType ft)
document
- capacity
- timeout
- ft
- Nullablepublic int getSize()
public int getCapacity()
public int getTimeout()
protected boolean addFeature(SimpleFeature f)
f
- Feature to addpublic static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity) throws SAXException
document
- URL to parsecapacity
- SAXException
public static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity, SimpleFeatureType ft) throws SAXException
SAXException
public static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity, int timeout) throws SAXException
SAXException
public static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity, int timeout, SimpleFeatureType ft) throws SAXException
SAXException
public SimpleFeatureType getFeatureType()
getFeatureType
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
FeatureReader.getFeatureType()
public SimpleFeature next() throws IOException, NoSuchElementException
FeatureReader
next
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
IOException
- If an error occurs reading the Feature.NoSuchElementException
- If there are no more Features in the Reader.FeatureReader.next()
public SimpleFeature peek() throws IOException, NoSuchElementException
IOException
NoSuchElementException
FeatureReader.next()
public boolean hasNext() throws IOException
FeatureReader
hasNext
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
IOException
- If an error occurs determining if there are more Features.FeatureReader.hasNext()
public void close()
FeatureReader
close
in interface Closeable
close
in interface AutoCloseable
close
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
FeatureReader.close()
public void run()
run
in interface Runnable
run
in class Thread
Runnable.run()
protected void initHints(XMLHandlerHints hints)
public int getInternalState()
public void resetTimer()
Copyright © 1996–2019 Geotools. All rights reserved.