Class BaseFeatureInputStream
java.lang.Object
com.vividsolutions.jump.io.BaseFeatureInputStream
- All Implemented Interfaces:
FeatureInputStream
- Direct Known Subclasses:
SpatialDatabasesFeatureInputStream
Base class for FeatureInputStreamReaders.
Handles the details of buffering the stream of features
to allow for lookahead.
This allows subclasses to implement the simpler semantics
of "return null if no more features".
Subclasses need to define readNext and close.
They also need to set the featureSchema instance variable.
-
Constructor Details
-
BaseFeatureInputStream
public BaseFeatureInputStream()
-
-
Method Details
-
getFeatureSchema
- Specified by:
getFeatureSchemain interfaceFeatureInputStream
-
next
- Specified by:
nextin interfaceFeatureInputStream- Throws:
Exception
-
hasNext
- Specified by:
hasNextin interfaceFeatureInputStream- Throws:
Exception
-
readNext
-
close
- Specified by:
closein interfaceFeatureInputStream- Throws:
Exception
-