public interface FileSystemsAgent
Modifier and Type | Field and Description |
---|---|
static SpecialistType<FileSystemsAgent> |
TYPE
Agent providing means to access file systems.
|
Modifier and Type | Method and Description |
---|---|
FileSystem<? extends FileHandle> |
getMemoryFileSystem()
Provides a memory-based file system instance.
|
FileSystem<? extends FileHandle> |
getOSFileSystem(String rootPath)
Provides an OS-based file system instance having the given path as root.
|
FileSystem<? extends FileHandle> |
getRelativeFileSystem(FileHandle root)
Provides a file system instance having the given root, which must represent a directory.
|
static final SpecialistType<FileSystemsAgent> TYPE
FileSystem<? extends FileHandle> getMemoryFileSystem()
FileSystem<? extends FileHandle> getOSFileSystem(@NotNull String rootPath)
rootPath
- The root path for the file system.FileSystem<? extends FileHandle> getRelativeFileSystem(@NotNull FileHandle root) throws IllegalArgumentException
root
- The root of the file system.IllegalArgumentException
- if the given root does not represent a directory.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408