An interface allowing applications to customize the process of locating a file.
{@link FileHandler} uses {@link FileLocator} objects for referencing files.These objects are not guaranteed to identify a file in a unique way. For instance, if only a file name is defined, this could mean a relative file name in the current directory, the name of a resource to be loaded from the class path, or something else. Before the file described by a {@code FileLocator} can be actually accessed, an unambiguous URL pointing tothis file has to be obtained. This is the job of a {@code FileLocationStrategy}.
This interface defines a method for locating a file provided as a {@code FileLocator} object. If location is successful, a URL is returned. Aconcrete implementation can perform arbitrary actions to search for the file in question at various places. There will also be an implementation allowing the combination of multiple {@code FileLocationStrategy} implementations; soa file can be searched using multiple strategies until one of them is successful.
@version $Id: FileLocationStrategy.java 1624601 2014-09-12 18:04:36Z oheger $
@since 2.0