de.uplanet.lucy.server.auxiliaries
Class FileLocator

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.FileLocator

@VelocityCallable(value="singleton")
public final class FileLocator
extends java.lang.Object

Used to locate files in a hierarchy.

Version:
$Revision: 46097 $

Constructor Summary
FileLocator()
           
 
Method Summary
 boolean exists(java.lang.String p_strPath, java.lang.String p_strFileName)
           
 java.lang.String locate(java.lang.String p_strBasePath, java.lang.String p_strSubDir, java.lang.String p_strFileName)
          Test if a file exists in the specified subdirectory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLocator

public FileLocator()
Method Detail

locate

public java.lang.String locate(java.lang.String p_strBasePath,
                               java.lang.String p_strSubDir,
                               java.lang.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_strFileName if this file exists, p_strBasePath + p_strFileName otherwise.

exists

public boolean exists(java.lang.String p_strPath,
                      java.lang.String p_strFileName)


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.