Class FilesystemVFSSource

java.lang.Object
com.kosdev.kos.commons.core.vfs.AbstractVFSSource
com.kosdev.kos.commons.core.vfs.FilesystemVFSSource
All Implemented Interfaces:
VFSSource

public class FilesystemVFSSource extends AbstractVFSSource
Class that corresponds to a directory on a filesystem. It allows native filesystem files to be mapped into the VFS.
Since:
1
Version:
1
  • Constructor Details

    • FilesystemVFSSource

      public FilesystemVFSSource(String path)
      Creates a source that maps to the specified root directory.
      Parameters:
      path - the directory corresponding to the root of this source
      Since:
      1
    • FilesystemVFSSource

      public FilesystemVFSSource(File dir)
      Creates a source that maps to the specified root directory.
      Parameters:
      dir - the directory corresponding to the root of this source
      Since:
      1
  • Method Details

    • getInputStream

      public InputStream getInputStream(String path)
      Retrieves the input stream for the given path.
      Parameters:
      path - the requested path
      Returns:
      the input stream
      Since:
      1