public class DirectoryManagerFactory extends Object
DirectoryManager objects.| Constructor | Description |
|---|---|
DirectoryManagerFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static DirectoryManager |
createDirectoryManager(String directory,
boolean readOnly) |
Creates a new
DirectoryManager for the given directory. |
static DirectoryManager |
createDirectoryManager(Path path,
boolean readOnly) |
Creates a new
DirectoryManager for the given directory path. |
static void |
setDirectoryManagerClass(Class<? extends DirectoryManager> clazz) |
Sets the class of
DirectoryManager that should be used when
creating instances here. |
public static void setDirectoryManagerClass(Class<? extends DirectoryManager> clazz)
DirectoryManager that should be used when
creating instances here. This class should provide constructors for
Path and String versions of the directory.clazz - the class to usepublic static DirectoryManager createDirectoryManager(Path path, boolean readOnly) throws IOException
DirectoryManager for the given directory path.path - the directory that the directory manager points toreadOnly - if false, the directory manager will attempt to create
directories when changing to a location that does not existIOException - if there was an IO error constructing the directory managerpublic static DirectoryManager createDirectoryManager(String directory, boolean readOnly) throws IOException
DirectoryManager for the given directory.directory - the directory that the directory manager points toreadOnly - if false, the directory manager will attempt to create
directories when changing to a location that does not existIOException - if there was an IO error constructing the directory managerCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage