|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
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 Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
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! |
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
protected |
FCBuffer(URI document,
int capacity,
int timeout,
SimpleFeatureType ft)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class 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 Logger logger
protected int state
protected SAXException exception
protected SimpleFeatureType ft
Constructor Detail |
---|
protected FCBuffer(URI document, int capacity, int timeout, SimpleFeatureType ft)
document
- capacity
- timeout
- ft
- NullableMethod Detail |
---|
public int getSize()
public int getCapacity()
public int getTimeout()
protected boolean addFeature(SimpleFeature f)
Adds a feature to the buffer
f
- Feature to add
public static FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(URI document, int capacity) throws 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
-
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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |