Class FileLocator
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.FileLocator
-
@VelocityCallable("singleton") public final class FileLocator extends ObjectUsed to locate files in a hierarchy.
-
-
Constructor Summary
Constructors Constructor Description FileLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String p_strPath, String p_strFileName)Stringlocate(String p_strBasePath, String p_strSubDir, String p_strFileName)Test if a file exists in the specified subdirectory.
-
-
-
Method Detail
-
locate
public String locate(String p_strBasePath, String p_strSubDir, String p_strFileName)
Test if a file exists in the specified subdirectory.Directory path may or may not end with a trailing slash.
- Parameters:
p_strBasePath- The base path.p_strSubDir- The subdirectory to look for the file.p_strFileName- The file to locate.- Returns:
p_strBasePath + p_strSubDir + p_strFileNameif this file exists,p_strBasePath + p_strFileNameotherwise.
-
-