public class DirectoryManagerFactory extends Object
DirectoryManager
objects.Constructor and Description |
---|
DirectoryManagerFactory() |
Modifier and Type | Method and Description |
---|---|
static DirectoryManager |
createDirectoryManager(Path path,
boolean readOnly)
Creates a new
DirectoryManager for the given directory path. |
static DirectoryManager |
createDirectoryManager(String directory,
boolean readOnly)
Creates a new
DirectoryManager for the given directory. |
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–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage