public class FileDataStoreFactory extends AbstractDataStoreFactory
For security purposes, the file's permissions are set to be accessible only by the file's owner. Note that Java 1.5 does not support manipulating file permissions, and must be done manually or using the JNI.
| Constructor and Description |
|---|
FileDataStoreFactory(File
|
| Modifier and Type | Method and Description |
|---|---|
protected <V extends Serializable |
createDataStore(String
Returns a new instance of a type-specific data store based on the given unique ID.
|
File |
getDataDirectory()
Returns the data directory.
|
getDataStorepublic FileDataStoreFactory(FiledataDirectory) throws IOException
dataDirectory - data directory
IOException
public final FilegetDataDirectory()
protected <V extends Serializable> DataStore <V> createDataStore(String id) throws IOException
AbstractDataStoreFactory
The DataStore must match the id parameter from this method.
createDataStore in class
AbstractDataStoreFactory
V - serializable type of the mapped value
id - unique ID to refer to typed data store
IOException