org.deegree.services.wps.provider.sextante
Class SextanteFeatureCollectionStreamReader

java.lang.Object
  extended by org.deegree.services.wps.provider.sextante.SextanteFeatureCollectionStreamReader

public class SextanteFeatureCollectionStreamReader
extends Object

This class will be need to read Feature for Feature from FeatureCollection as Stream.

Version:
$Revision: $, $Date: $
Author:
Jens Pabel, last edited by: $Author: pabel $

Constructor Summary
SextanteFeatureCollectionStreamReader(es.unex.sextante.parameters.Parameter param, StreamFeatureCollection sfc)
           
 
Method Summary
 void close()
          Closes the stream.
static void closeAll()
          Closes all SextanteFeatureCollectionStreamReaders.
static boolean containOneOfAllReadersFeatures()
          Checks whether one of SextanteFeatureCollectionStreamReaders contains Features.
 boolean foundFeature()
          Returns, if Feature are found.
 es.unex.sextante.dataObjects.IVectorLayer getNextFeatureAsVectorLayer()
          Returns the next Feature as IVectorLayer.
 es.unex.sextante.parameters.Parameter getParameter()
          Returns the SEXTANTE GeoAlgorithm input parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SextanteFeatureCollectionStreamReader

public SextanteFeatureCollectionStreamReader(es.unex.sextante.parameters.Parameter param,
                                             StreamFeatureCollection sfc)
Method Detail

containOneOfAllReadersFeatures

public static boolean containOneOfAllReadersFeatures()
Checks whether one of SextanteFeatureCollectionStreamReaders contains Features.

Returns:
true = if one of SextanteFeatureCollectionStreamReaders contains Features.

closeAll

public static void closeAll()
                     throws IOException
Closes all SextanteFeatureCollectionStreamReaders.

Throws:
IOException

getParameter

public es.unex.sextante.parameters.Parameter getParameter()
Returns the SEXTANTE GeoAlgorithm input parameter.

Returns:
SEXTANTE GeoAlgorithm input parameter.

getNextFeatureAsVectorLayer

public es.unex.sextante.dataObjects.IVectorLayer getNextFeatureAsVectorLayer()
                                                                      throws IOException
Returns the next Feature as IVectorLayer.

Returns:
Next Feature as IVectorLayer, if no Features available returns an empty IVectorLayer.
Throws:
IOException

foundFeature

public boolean foundFeature()
Returns, if Feature are found.

Returns:
If Feature are found.

close

public void close()
           throws IOException
Closes the stream.

Throws:
IOException


Copyright © 2011. All Rights Reserved.