it.freedom.util
Class PathFinder

java.lang.Object
  extended by it.freedom.util.PathFinder

public class PathFinder
extends java.lang.Object

Builds a relative URL path from current directory to the base directory


Constructor Summary
PathFinder()
           
 
Method Summary
static java.io.File findRelativePath(java.lang.String base, java.lang.String path)
          Builds a relative path to the given base path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder

public PathFinder()
Method Detail

findRelativePath

public static java.io.File findRelativePath(java.lang.String base,
                                            java.lang.String path)
                                     throws java.io.IOException
Builds a relative path to the given base path.

Parameters:
base - - the path used as the base
path - - the path to compute relative to the base path
Returns:
A relative path from base to path
Throws:
java.io.IOException