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(java.io.File dataDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected <V extends java.io.Serializable> |
createDataStore(java.lang.String id)
Returns a new instance of a type-specific data store based on the given unique ID.
|
java.io.File |
getDataDirectory()
Returns the data directory.
|
getDataStorepublic FileDataStoreFactory(java.io.File dataDirectory)
throws java.io.IOException
dataDirectory - data directoryjava.io.IOExceptionpublic final java.io.File getDataDirectory()
protected <V extends java.io.Serializable> DataStore<V> createDataStore(java.lang.String id) throws java.io.IOException
AbstractDataStoreFactory
The DataStore.getId() must match the id parameter from this method.
createDataStore in class AbstractDataStoreFactoryV - serializable type of the mapped valueid - unique ID to refer to typed data storejava.io.IOExceptionCopyright © 2011-2018 Google. All Rights Reserved.