org.geotools.data
Class AbstractFileDataStore

java.lang.Object
  extended byorg.geotools.data.AbstractDataStore
      extended byorg.geotools.data.AbstractFileDataStore
All Implemented Interfaces:
DataStore
Direct Known Subclasses:
ShapefileDataStore

public abstract class AbstractFileDataStore
extends AbstractDataStore

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
protected abstract  FeatureReader getFeatureReader()
          Singular version, which must be implemented to represent a Reader for the url being read.
 FeatureSource getFeatureSource()
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter getFeatureWriter(Filter filter, Transaction transaction)
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter getFeatureWriter(Transaction transaction)
           
 FeatureWriter getFeatureWriterAppend(Transaction transaction)
           
abstract  FeatureType getSchema()
          Singular version, returns the FeatureType for the url being read.
 void updateSchema(FeatureType featureType)
          Singular version, calls parent with getSchema().getTypeName()
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, createSchema, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, getUnsupportedFilter, getView, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileDataStore

public AbstractFileDataStore()
Method Detail

getSchema

public abstract FeatureType getSchema()
                               throws java.io.IOException
Singular version, returns the FeatureType for the url being read.

Throws:
java.io.IOException
See Also:
DataStore.getSchema(java.lang.String)

getFeatureReader

protected abstract FeatureReader getFeatureReader()
                                           throws java.io.IOException
Singular version, which must be implemented to represent a Reader for the url being read.

Throws:
java.io.IOException
See Also:
org.geotools.data.DataStore#getFeatureReader(java.lang.String)

updateSchema

public void updateSchema(FeatureType featureType)
                  throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
java.io.IOException
See Also:
DataStore.updateSchema(java.lang.String, org.geotools.feature.FeatureType)

getFeatureSource

public FeatureSource getFeatureSource()
                               throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
java.io.IOException
See Also:
DataStore.getFeatureSource(java.lang.String)

getFeatureWriter

public FeatureWriter getFeatureWriter(Filter filter,
                                      Transaction transaction)
                               throws java.io.IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
java.io.IOException
See Also:
DataStore.getFeatureWriter(java.lang.String, org.geotools.filter.Filter, org.geotools.data.Transaction)

getFeatureWriter

public FeatureWriter getFeatureWriter(Transaction transaction)
                               throws java.io.IOException
Throws:
java.io.IOException
See Also:
DataStore.getFeatureWriter(java.lang.String, org.geotools.data.Transaction)

getFeatureWriterAppend

public FeatureWriter getFeatureWriterAppend(Transaction transaction)
                                     throws java.io.IOException
Throws:
java.io.IOException
See Also:
DataStore.getFeatureWriterAppend(java.lang.String, org.geotools.data.Transaction)


Copyright © GeoTools. All Rights Reserved.