org.geotools.data
Class AbstractFileDataStore

java.lang.Object
  extended by org.geotools.data.AbstractDataStore
      extended by org.geotools.data.AbstractFileDataStore
All Implemented Interfaces:
DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>, DataStore, FileDataStore
Direct Known Subclasses:
ShapefileDataStore

public abstract class AbstractFileDataStore
extends AbstractDataStore
implements FileDataStore

This class assumes the DataStore represents a single source, represented by a URL. In many cases the default functionality is chained off to the parent class (AbstractDataStore).

Author:
dzwiers
See Also:
AbstractDataStore

Field Summary
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
AbstractFileDataStore()
           
 
Method Summary
 FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader()
          Singular version, which must be implemented to represent a Reader for the url being read.
 FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureSource()
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriter(org.opengis.filter.Filter filter, Transaction transaction)
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriter(Transaction transaction)
           
 FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriterAppend(Transaction transaction)
           
 org.opengis.feature.simple.SimpleFeatureType getSchema()
          Singular version, returns the FeatureType for the url being read.
 void updateSchema(org.opengis.feature.simple.SimpleFeatureType featureType)
          Singular version, calls parent with getSchema().getTypeName()
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, createSchema, dispose, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getInfo, getLockingManager, getNames, getSchema, getSchema, getSupportedHints, getTypeNames, getUnsupportedFilter, getView, state, updateSchema, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.data.DataStore
getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, getView, updateSchema
 
Methods inherited from interface org.geotools.data.DataAccess
createSchema, dispose, getFeatureSource, getInfo, getNames, getSchema, updateSchema
 

Constructor Detail

AbstractFileDataStore

public AbstractFileDataStore()
Method Detail

getSchema

public org.opengis.feature.simple.SimpleFeatureType getSchema()
                                                       throws java.io.IOException
Singular version, returns the FeatureType for the url being read.

Specified by:
getSchema in interface FileDataStore
Returns:
FeatureType of the file being read
Throws:
java.io.IOException
See Also:
DataStore.getSchema(java.lang.String)

getFeatureReader

public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader()
                                                                                                                      throws java.io.IOException
Singular version, which must be implemented to represent a Reader for the url being read.

Specified by:
getFeatureReader in interface FileDataStore
Throws:
java.io.IOException
See Also:
org.geotools.data.DataStore#getFeatureReader(java.lang.String)

updateSchema

public void updateSchema(org.opengis.feature.simple.SimpleFeatureType featureType)
                  throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Specified by:
updateSchema in interface FileDataStore
Throws:
java.io.IOException
See Also:
DataStore.updateSchema(java.lang.String,SimpleFeatureType)

getFeatureSource

public FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureSource()
                                                                                                                      throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Specified by:
getFeatureSource in interface FileDataStore
Throws:
java.io.IOException
See Also:
DataStore.getFeatureSource(java.lang.String)

getFeatureWriter

public FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriter(org.opengis.filter.Filter filter,
                                                                                                                             Transaction transaction)
                                                                                                                      throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Specified by:
getFeatureWriter in interface FileDataStore
Throws:
java.io.IOException
See Also:
org.geotools.data.DataStore#getFeatureWriter(Filter,Transaction)

getFeatureWriter

public FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriter(Transaction transaction)
                                                                                                                      throws java.io.IOException
Specified by:
getFeatureWriter in interface FileDataStore
Throws:
java.io.IOException
See Also:
DataStore.getFeatureWriter(java.lang.String, org.geotools.data.Transaction)

getFeatureWriterAppend

public FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriterAppend(Transaction transaction)
                                                                                                                            throws java.io.IOException
Specified by:
getFeatureWriterAppend in interface FileDataStore
Throws:
java.io.IOException
See Also:
DataStore.getFeatureWriterAppend(java.lang.String, org.geotools.data.Transaction)


Copyright © 1996-2010 Geotools. All Rights Reserved.