Package thredds.util.filesource
Interface FileSource
-
- All Known Subinterfaces:
DescendantFileSource
- All Known Implementing Classes:
BasicDescendantFileSource,BasicWithExclusionsDescendantFileSource,ChainedFileSource
public interface FileSourceRepresent a source for java.io.Files.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilegetFile(String path)Return the File, if it exists, that the given path represents for the FileSource implementation in use.
-
-
-
Method Detail
-
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.
-
-