org.geotools.data.vpf.file
Class VPFFileStore

java.lang.Object
  extended by org.geotools.data.AbstractDataStore
      extended by org.geotools.data.vpf.file.VPFFileStore
All Implemented Interfaces:
DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>, DataStore

public class VPFFileStore
extends AbstractDataStore

A data store for VPF files. Any file can be retrieved from here. If you want joins (for example features with their geometries), you will have to look elsewhere. Hopefully some one will take advantage of this class to provide the full functionality.

Author:
Jeff Yutzler

Field Summary
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
VPFFileStore()
          Default constructor.
 
Method Summary
protected  FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.lang.String pathName)
          Subclass must implement.
 org.opengis.feature.simple.SimpleFeatureType getSchema(java.lang.String pathName)
          Retrive schema information for typeName
 java.lang.String[] getTypeNames()
          helper method for retrieving all the names.
 void reset()
          Closes all of the opoen files and removes them from the collection of open files.
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, createSchema, dispose, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getInfo, getLockingManager, getNames, getSchema, getSupportedHints, getUnsupportedFilter, getView, state, updateSchema, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPFFileStore

public VPFFileStore()
Default constructor. Nothing special

Method Detail

getTypeNames

public java.lang.String[] getTypeNames()
Description copied from class: AbstractDataStore
helper method for retrieving all the names.

Specified by:
getTypeNames in interface DataStore
Specified by:
getTypeNames in class AbstractDataStore
Returns:
typeNames for available FeatureTypes.

getSchema

public org.opengis.feature.simple.SimpleFeatureType getSchema(java.lang.String pathName)
                                                       throws java.io.IOException
Description copied from class: AbstractDataStore
Retrive schema information for typeName

Specified by:
getSchema in interface DataStore
Specified by:
getSchema in class AbstractDataStore
Parameters:
pathName - typeName of requested FeatureType
Returns:
FeatureType for the provided typeName
Throws:
java.io.IOException - If typeName cannot be found

getFeatureReader

protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.lang.String pathName)
                                                                                                                         throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass must implement.

Specified by:
getFeatureReader in class AbstractDataStore
Returns:
FeatureReader over contents of typeName
Throws:
java.io.IOException

reset

public void reset()
Closes all of the opoen files and removes them from the collection of open files.



Copyright © 1996-2010 Geotools. All Rights Reserved.