public class DirectoryResolver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BOOKMAP_USER_HOME |
private static java.lang.String |
WORK_DIR |
Constructor and Description |
---|
DirectoryResolver() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
bookmapUserHome() |
static java.nio.file.Path |
getBookmapDirectoryByName(java.lang.String folderName)
Allows to get subfloder in Bookmap directory.
|
static java.nio.file.Path |
getBookmapRootDirectory()
Allows to access Bookmap root directory
On windows: C:\Bookmap by default, may be changed during installation
On mac: ~/Library/Application Support/Bookmap
On linux: ~/.bookmap
|
static java.nio.file.Path |
getCacheDirectory() |
static java.nio.file.Path |
getConfigDirectory()
Config directory is where all configuration files for Bookmap are stored.
|
static java.nio.file.Path |
getDataLibraryDirectory() |
static java.nio.file.Path |
getDiagnosticLogsDirectory() |
static java.nio.file.Path |
getErrorReportsDirectory() |
static java.nio.file.Path |
getFeedsDirectory() |
static java.nio.file.Path |
getLayer0ApiModulesDirectory() |
static java.nio.file.Path |
getLogsDirectory() |
static java.nio.file.Path |
getScreenshotsDirectory() |
static java.nio.file.Path |
getSoundsDirectory() |
private static java.lang.String |
workDir() |
private static final java.lang.String WORK_DIR
private static final java.lang.String BOOKMAP_USER_HOME
public static java.nio.file.Path getBookmapRootDirectory()
public static java.nio.file.Path getBookmapDirectoryByName(java.lang.String folderName)
folderName
- Name of subfolder under Bookmap root directorypublic static java.nio.file.Path getConfigDirectory()
public static java.nio.file.Path getLogsDirectory()
public static java.nio.file.Path getFeedsDirectory()
public static java.nio.file.Path getErrorReportsDirectory()
public static java.nio.file.Path getScreenshotsDirectory()
public static java.nio.file.Path getDiagnosticLogsDirectory()
public static java.nio.file.Path getSoundsDirectory()
public static java.nio.file.Path getLayer0ApiModulesDirectory()
public static java.nio.file.Path getCacheDirectory()
public static java.nio.file.Path getDataLibraryDirectory()
private static java.lang.String workDir()
private static java.lang.String bookmapUserHome()