org.omegahat.Environment.Tools.FileLocator
Interface FileLocatorInt

All Known Implementing Classes:
FileLocator

public interface FileLocatorInt

Interface that provides a simple abstraction of a mechanism for locating files, allowing it to support directories, archives, HTTP servers, etc.


Method Summary
 java.lang.Object find(java.io.File what)
          Return a handle - File, archive entry, connection, etc.
 java.lang.Object find(java.lang.String what)
          Return a handle - File, archive entry, connection, etc.
 java.lang.Object where(java.io.File what)
          Return the "location" - archive, directory, etc.
 java.lang.Object where(java.lang.String what)
          Return the "location" - archive, directory, etc.
 

Method Detail

find

public java.lang.Object find(java.lang.String what)
Return a handle - File, archive entry, connection, etc. - to the file found when looking for the "file" what

find

public java.lang.Object find(java.io.File what)
Return a handle - File, archive entry, connection, etc. - to the file found when looking for the "file" what

where

public java.lang.Object where(java.lang.String what)
Return the "location" - archive, directory, etc. - in which the specified file has been located.

where

public java.lang.Object where(java.io.File what)
Return the "location" - archive, directory, etc. - in which the specified file has been located.