Class DirectoryPath
java.lang.Object
electrostatic4j.snaploader.filesystem.DirectoryPath
A class denotes and provides a directory absolute path.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectoryPathWhen combined with theLibraryInfo(DirectoryPath, DirectoryPath, String, DirectoryPath)and theNativeBinaryLoaderAPIs, it denotes the classpath routine for theFileLocatorAPI.static final DirectoryPathAn alias object for the current working directory absolute path.static final DirectoryPathAn alias object for the root user home directory absolute path. -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryPath(String path) Instantiates a directory path from a string path (not null).DirectoryPath(String root, String... entries) Instantiates a directory path from a string path (not null) using the platform-specific file separators. -
Method Summary
-
Field Details
-
USER_DIR
An alias object for the current working directory absolute path. -
USER_HOME
An alias object for the root user home directory absolute path. -
CLASS_PATH
When combined with theLibraryInfo(DirectoryPath, DirectoryPath, String, DirectoryPath)and theNativeBinaryLoaderAPIs, it denotes the classpath routine for theFileLocatorAPI.
-
-
Constructor Details
-
DirectoryPath
Instantiates a directory path from a string path (not null).- Parameters:
path- the directory path
-
DirectoryPath
Instantiates a directory path from a string path (not null) using the platform-specific file separators.- Parameters:
root- the root directory pathentries- the filesystem entries after the root path
-
-
Method Details
-
getPath
Retrieves the absolute path to the specified directory path.- Returns:
- a path in strings.
-