public interface DescendantFileSource extends FileSource
| Modifier and Type | Method and Description |
|---|---|
DescendantFileSource |
getDescendant(String relativePath)
Return a DescendantFileSource representing the descendant directory
specified by the relative path.
|
String |
getRelativePath(File file)
Return the path relative to the root directory that represents the given descendant file.
|
String |
getRelativePath(String filePath)
Return the path relative to the root directory that represents the given descendant file path.
|
File |
getRootDirectory()
Return the root directory represented by this FileLocator as a java.io.File.
|
String |
getRootDirectoryPath()
Return the path of the root directory represented by this FileLocator.
|
boolean |
isDescendant(File file)
Return true if the given File is an existing descendant of the root directory, false otherwise.
|
boolean |
isDescendant(String filePath)
Return true if the given file path is an existing descendant of the root directory, false otherwise.
|
getFileDescendantFileSource getDescendant(String relativePath)
relativePath - the relative path to the descendant directory.File getRootDirectory()
String getRootDirectoryPath()
boolean isDescendant(File file)
file - the File to be checked if it is a descendant.boolean isDescendant(String filePath)
filePath - the file path to be checked if it is a descendant.String getRelativePath(File file)
file - the File for which the relative path is to be determined.String getRelativePath(String filePath)
filePath - the file path for which the relative path is to be determined.Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.