| java.lang.Object java.lang.Thread org.geotools.xml.gml.FCBuffer
All known Subclasses: org.geotools.data.wfs.WFSFeatureReader,
FCBuffer | public class FCBuffer extends Thread implements FeatureReader(Code) | |
Feature Buffer ... acts as a FeatureReader by making itself as a seperate
thread prior starting execution with the SAX Parser.
author: dzwiers |
Inner Class :public static class StopException extends SAXException | |
Method Summary | |
protected boolean | addFeature(Feature f) | public void | close() | public int | getCapacity() | public static FeatureReader | 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. | public static FeatureReader | getFeatureReader(URI document, int capacity, FeatureType ft) | public static FeatureReader | getFeatureReader(URI document, int capacity, int timeout) | public static FeatureReader | getFeatureReader(URI document, int capacity, int timeout, FeatureType ft) | public FeatureType | getFeatureType() | public int | getInternalState() | public int | getSize() | public int | getTimeout() | public boolean | hasNext() | protected void | initHints(XMLHandlerHints hints) Called before parsing the FeatureCollection. | public Feature | next() | public Feature | peek() | public void | resetTimer() | public void | run() |
FINISH | final public static int FINISH(Code) | | Last feature is in the buffer
|
STOP | final public static int STOP(Code) | | DOCUMENT ME!
|
state | protected int state(Code) | | DOCUMENT ME!
|
FCBuffer | protected FCBuffer(URI document, int capacity, int timeout, FeatureType ft)(Code) | | Parameters: document - Parameters: capacity - Parameters: timeout - Parameters: ft - Nullable |
addFeature | protected boolean addFeature(Feature f)(Code) | |
Adds a feature to the buffer
Parameters: f - Feature to add false if unable to add the feature |
getCapacity | public int getCapacity()(Code) | | DOCUMENT ME!
The buffer capacity |
getFeatureReader | public static FeatureReader getFeatureReader(URI document, int capacity) throws SAXException(Code) | |
The prefered method of using this class, this will return the Feature
Reader for the document specified, using the specified buffer capacity.
Parameters: document - URL to parse Parameters: capacity - throws: SAXException - |
getInternalState | public int getInternalState()(Code) | | |
getSize | public int getSize()(Code) | | DOCUMENT ME!
The buffer size |
getTimeout | public int getTimeout()(Code) | | DOCUMENT ME!
The buffer capacity |
initHints | protected void initHints(XMLHandlerHints hints)(Code) | | Called before parsing the FeatureCollection. Subclasses may override to set their custom hints.
|
resetTimer | public void resetTimer()(Code) | | |
|
|