public abstract class PointCollectionStreamAbstract extends PointCollectionImpl
PointFeatureCollection
from a point stream.
Subclasses must implement getInputStream()
.PointCollectionImpl.PointCollectionSubset
localIterator
Constructor and Description |
---|
PointCollectionStreamAbstract(java.lang.String name)
Creates a feature collection with the specified name.
|
PointCollectionStreamAbstract(java.lang.String name,
CalendarDateUnit timeUnit,
java.lang.String altUnits)
Creates a feature collection with the specified name, time unit, and altitude unit.
|
Modifier and Type | Method and Description |
---|---|
abstract java.io.InputStream |
getInputStream()
Returns the input stream from which to read point data.
|
PointFeatureIterator |
getPointFeatureIterator()
Get an iterator over the PointFeatures of this collection.
|
finish, getCollectionFeatureType, hasNext, iterator, next, resetIteration, subset
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
public PointCollectionStreamAbstract(java.lang.String name)
DsgCollectionImpl.getTimeUnit()
and DsgCollectionImpl.getAltUnits()
will return
default values until getPointFeatureIterator()
is called for the first time.name
- the name of this feature collection. May be null.public PointCollectionStreamAbstract(java.lang.String name, CalendarDateUnit timeUnit, java.lang.String altUnits)
name
- the name of this feature collection. May be null.timeUnit
- the time unit. May not be null.altUnits
- the UDUNITS altitude unit string. May be null.public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public PointFeatureIterator getPointFeatureIterator() throws java.io.IOException
PointFeatureCollection
java.io.IOException
- on read error