brahms.base.util
Class FileLocator

java.lang.Object
  extended by brahms.base.util.FileLocator

public class FileLocator
extends java.lang.Object

FileLocator is a utility class to find a file. This class will try to find the file using the following methods:

1. The name of the file

2. Search the following places:

Version:
$Revision: 1.2 $ $Date: 2008/05/29 20:30:36 $ $Author: rvhoof $
Author:
Ron van Hoof

Constructor Summary
FileLocator()
           
 
Method Summary
static java.io.File findFile(java.lang.String filename)
          Tries to find the file with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLocator

public FileLocator()
Method Detail

findFile

public static java.io.File findFile(java.lang.String filename)
Tries to find the file with the specified name. This method will try to find the configuration file using the following methods:

1. The name of the file

2. The agent tries to locate that file by searching the following places:

Parameters:
filename - the name of the file to be located
Returns:
File the File reference if the file was found, null if the file could not be found


Copyright © 1997-2012 All Rights Reserved.