Interface FileSource

All Known Subinterfaces:
DescendantFileSource
All Known Implementing Classes:
BasicDescendantFileSource, BasicWithExclusionsDescendantFileSource, ChainedFileSource

public interface FileSource
Represent a source for java.io.Files.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the File, if it exists, that the given path represents for the FileSource implementation in use.
  • Method Details

    • getFile

      File getFile(String path)
      Return the File, if it exists, that the given path represents for the FileSource implementation in use. Different implementations of FileSource can have different restrictions on the set of recognized paths. For instance, some implementations may only be able to handle paths that reference Files under a particular root directory.
      Parameters:
      path - the path to the desired File.
      Returns:
      the File represented by the path or null.