org.geotools.data
Class EmptyFeatureReader<T extends FeatureType,F extends Feature>

Object
  extended by EmptyFeatureReader<T,F>
All Implemented Interfaces:
FeatureReader<T,F>

public class EmptyFeatureReader<T extends FeatureType,F extends Feature>
extends Object
implements FeatureReader<T,F>

Represents an Empty, Typed, FeatureReader.

Author:
Jody Garnett, Refractions Research
Module:
modules/library/main (gt-main.jar)

Constructor Summary
EmptyFeatureReader(T featureType)
          An Empty FeatureReader of the provided featureType.
 
Method Summary
 void close()
          Cleans up after Empty FeatureReader.
 T getFeatureType()
          Return the FeatureType this reader has been configured to create.
 boolean hasNext()
          There is no next Feature.
 F next()
          Throws NoSuchElementException as this is an Empty FeatureReader.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyFeatureReader

public EmptyFeatureReader(T featureType)
An Empty FeatureReader of the provided featureType.

Parameters:
featureType -
Method Detail

getFeatureType

public T getFeatureType()
Description copied from interface: FeatureReader
Return the FeatureType this reader has been configured to create.

Specified by:
getFeatureType in interface FeatureReader<T extends FeatureType,F extends Feature>
Returns:
the FeatureType of the Features this FeatureReader will create.
See Also:
FeatureReader.getFeatureType()

next

public F next()
                       throws NoSuchElementException
Throws NoSuchElementException as this is an Empty FeatureReader.

Specified by:
next in interface FeatureReader<T extends FeatureType,F extends Feature>
Returns:
Does not return
Throws:
NoSuchElementException
See Also:
FeatureReader.next()

hasNext

public boolean hasNext()
There is no next Feature.

Specified by:
hasNext in interface FeatureReader<T extends FeatureType,F extends Feature>
Returns:
false
See Also:
FeatureReader.hasNext()

close

public void close()
Cleans up after Empty FeatureReader.

Specified by:
close in interface FeatureReader<T extends FeatureType,F extends Feature>
See Also:
FeatureReader.close()


Copyright © 1996-2009 Geotools. All Rights Reserved.