metaglue
Class PortableFileSystem
java.lang.Object
|
+--metaglue.PortableFileSystem
- public class PortableFileSystem
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableFileSystem
public PortableFileSystem()
main
public static void main(String[] argv)
homeFileSystem
public static String homeFileSystem()
findClassPathContainingFile
public static String findClassPathContainingFile(String searchFile)
- This looks up files in your classpath.
This returns the classpath directory the file is found in, NOT
the actual file name
findFileNamed
public static File findFileNamed(String searchFile)
- Convenience procedure to get a file with a given name. Uses
findClassPathContainingFile to lookup the name and returns the
best match.
getClassPathPrefix
public static String getClassPathPrefix(String suffix)
separateDirectoryList
public static Vector separateDirectoryList(String dirList)
- Pull apart a directory list in a machine-independent way to the individual
directories.
- Parameters:
dirList
- the listing of directories in a single object- Returns:
- the vector of individual directories contained in
dirList