Package com.tccc.kos.commons.core.vfs
Class FilesystemVFSSource
java.lang.Object
com.tccc.kos.commons.core.vfs.AbstractVFSSource
com.tccc.kos.commons.core.vfs.FilesystemVFSSource
- All Implemented Interfaces:
VFSSource
Class that corresponds to a directory on a filesystem.
It allows native filesystem files to be mapped into the VFS.
- Since:
- 1.0
- Version:
- 2022-08-30
-
Constructor Summary
ConstructorsConstructorDescriptionFilesystemVFSSource
(File dir) Creates a source that maps to the specified root directory.FilesystemVFSSource
(String path) Creates a source that maps to the specified root directory. -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(String path) Retrieves the input stream for the given path.Methods inherited from class com.tccc.kos.commons.core.vfs.AbstractVFSSource
getParent, isEnabled, setEnabled, setParent
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.vfs.VFSSource
getBasePath, getDetails, getFullPath, onUnmount
-
Constructor Details
-
FilesystemVFSSource
Creates a source that maps to the specified root directory.- Parameters:
path
- the directory corresponding to the root of this source
-
FilesystemVFSSource
Creates a source that maps to the specified root directory.- Parameters:
dir
- the directory corresponding to the root of this source
-
-
Method Details
-
getInputStream
Retrieves the input stream for the given path.- Parameters:
path
- the requested path- Returns:
- the input stream
-