org.iges.util
Class FileResolver

java.lang.Object
  |
  +--org.iges.util.FileResolver

public class FileResolver
extends java.lang.Object

Provides slightly more flexible handling of paths than the java.io.File class.


Constructor Summary
FileResolver()
           
 
Method Summary
static java.io.File resolve(java.lang.String path, java.lang.String filename)
          Resolves a filename relative to a base path, similar to the way a URL is resolved relative to the server's base URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResolver

public FileResolver()
Method Detail

resolve

public static java.io.File resolve(java.lang.String path,
                                   java.lang.String filename)
Resolves a filename relative to a base path, similar to the way a URL is resolved relative to the server's base URL. If the filename is absolute, then it is returned as is. If it is relative, then it is resolved with respect to the path parameter.

Parameters:
filename - The filename to be resolved.
path - The path to resolve relative filenames by.
Returns:
The File object that the filename resolves to.