es.unex.sextante.gui.help
Class FileUtilities

java.lang.Object
  extended by es.unex.sextante.gui.help.FileUtilities

public class FileUtilities
extends java.lang.Object


Constructor Summary
FileUtilities()
           
 
Method Summary
static java.lang.String getRelativePath(java.io.File home, java.io.File f)
          get relative path of File 'f' with respect to 'home' directory example : home = /a/b/c f = /a/d/e/x.txt s = getRelativePath(home,f) = ../..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtilities

public FileUtilities()
Method Detail

getRelativePath

public static java.lang.String getRelativePath(java.io.File home,
                                               java.io.File f)
get relative path of File 'f' with respect to 'home' directory example : home = /a/b/c f = /a/d/e/x.txt s = getRelativePath(home,f) = ../../d/e/x.txt

Parameters:
home - base path, should be a directory, not a file, or it doesn't make sense
f - file to generate path for
Returns:
path from home to f as a string