EAF 7.6 Implementation

org.enhydra.server.util
Class PathUtil

java.lang.Object
  extended by org.enhydra.server.util.PathUtil

public class PathUtil
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
Damir Milovic

Method Summary
static java.lang.String makeAbsolutePath(java.lang.String parentPath, java.lang.String relativePath)
          Creates absolute path from relative.
static java.lang.String makeRelativePath(java.lang.String parentPath, java.lang.String absolutePath)
          Creates relative path from absolute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeRelativePath

public static java.lang.String makeRelativePath(java.lang.String parentPath,
                                                java.lang.String absolutePath)
Creates relative path from absolute. Resolve relative pathnames against parent directory.

Parameters:
parentPath - parent directory path.
absolutePath - absolute file path (directory or file).
Returns:
relative path if parent directory is included in absolutePath, otherwise return absolute path.

makeAbsolutePath

public static java.lang.String makeAbsolutePath(java.lang.String parentPath,
                                                java.lang.String relativePath)
Creates absolute path from relative.

Parameters:
parentPath - root path (directory).
relativePath - relative path (directory or file).
Returns:
absolute path if parentPath is not null and it is absolute.

EAF 7.6 Implementation