|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.geotools.xml.gml.FCBuffer
Feature Buffer ... acts as a FeatureReader by making itself as a seperate thread prior starting execution with the SAX Parser.
Nested Class Summary | |
static class |
FCBuffer.StopException
DOCUMENT ME! |
Field Summary | |
protected org.xml.sax.SAXException |
exception
|
static int |
FINISH
Last feature is in the buffer |
protected FeatureType |
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,
FeatureType ft)
|
Method Summary | |
protected boolean |
addFeature(Feature f)
Adds a feature to the buffer |
void |
close()
Release the underlying resources associated with this stream. |
int |
getCapacity()
DOCUMENT ME! |
static FeatureReader |
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 |
getFeatureReader(java.net.URI document,
int capacity,
FeatureType ft)
|
static FeatureReader |
getFeatureReader(java.net.URI document,
int capacity,
int timeout)
|
static FeatureReader |
getFeatureReader(java.net.URI document,
int capacity,
int timeout,
FeatureType ft)
|
FeatureType |
getFeatureType()
DOCUMENT ME! |
int |
getSize()
DOCUMENT ME! |
int |
getTimeout()
DOCUMENT ME! |
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
Feature |
next()
Reads the next Feature in the FeatureReader. |
Feature |
peek()
|
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 FeatureType ft
Constructor Detail |
protected FCBuffer(java.net.URI document, int capacity, int timeout, FeatureType ft)
document
- capacity
- timeout
- ft
- NullableMethod Detail |
public int getSize()
public int getCapacity()
public int getTimeout()
protected boolean addFeature(Feature f)
Adds a feature to the buffer
f
- Feature to add
public static FeatureReader 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 getFeatureReader(java.net.URI document, int capacity, FeatureType ft) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static FeatureReader getFeatureReader(java.net.URI document, int capacity, int timeout) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static FeatureReader getFeatureReader(java.net.URI document, int capacity, int timeout, FeatureType ft) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public FeatureType getFeatureType()
getFeatureType
in interface FeatureReader
FeatureReader.getFeatureType()
public Feature next() throws java.io.IOException, java.util.NoSuchElementException
FeatureReader
next
in interface FeatureReader
java.util.NoSuchElementException
- If there are no more Features in the
Reader.
java.io.IOException
- If an error occurs reading the Feature.FeatureReader.next()
public Feature 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
java.io.IOException
- If an error occurs determining if there are more
Features.FeatureReader.hasNext()
public void close()
FeatureReader
close
in interface FeatureReader
FeatureReader.close()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |