gps.convert
Class FileUtil

java.lang.Object
  extended by gps.convert.FileUtil

public final class FileUtil
extends java.lang.Object

Author:
Curt Arnold
Original, Mario De Weerd
Adapted to BT747

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String getRelativePath(java.lang.String base, java.lang.String target, char separator)
          Returns a relative path for the targetFile relative to the base directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

getRelativePath

public static final java.lang.String getRelativePath(java.lang.String base,
                                                     java.lang.String target,
                                                     char separator)
Returns a relative path for the targetFile relative to the base directory.

Parameters:
base - base directory as returned by File.getCanonicalPath()
target - target file
separator - path separator on the system
Returns:
relative path of target file. Returns targetFile if there were no commonalities between the base and the target