| java.lang.Object org.enhydra.server.util.PathUtil
PathUtil | public class PathUtil (Code) | | Title:
Description:
Copyright: Copyright (c) 2002
Company:
author: Damir Milovic version: 1.0 |
Method Summary | |
public static String | makeAbsolutePath(String parentPath, String relativePath) Creates absolute path from relative.
Parameters: parentPath - root path (directory). Parameters: relativePath - relative path (directory or file). | public static String | makeRelativePath(String parentPath, String absolutePath) Creates relative path from absolute. |
makeAbsolutePath | public static String makeAbsolutePath(String parentPath, String relativePath)(Code) | | Creates absolute path from relative.
Parameters: parentPath - root path (directory). Parameters: relativePath - relative path (directory or file). absolute path if parentPath is not null and it is absolute. |
makeRelativePath | public static String makeRelativePath(String parentPath, String absolutePath)(Code) | | Creates relative path from absolute. Resolve relative pathnames against
parent directory.
Parameters: parentPath - parent directory path. Parameters: absolutePath - absolute file path (directory or file). relative path if parent directory is included in absolutePath,otherwise return absolute path. |
|
|