org.apache.maven.doxia.site.decoration.inheritance
Class PathUtils
java.lang.Object
org.apache.maven.doxia.site.decoration.inheritance.PathUtils
public abstract class PathUtils
- extends java.lang.Object
Utilitites that allow conversion of old and new pathes and URLs relative to each other.
- Version:
- $Id: PathUtils.java 542490 2007-05-29 11:18:51Z vsiveton $
- Author:
- Brett Porter, Henning P. Schmiedehausen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUtils
private PathUtils()
convertPath
public static final PathDescriptor convertPath(PathDescriptor oldPath,
PathDescriptor newPath)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getRelativePath
public static final java.lang.String getRelativePath(PathDescriptor oldPathDescriptor,
PathDescriptor newPathDescriptor)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getRelativeWebPath
public static final java.lang.String getRelativeWebPath(java.lang.String oldPath,
java.lang.String newPath)
- This method can calculate the relative path between two pathes on a web site.
getRelativeFilePath
public static final java.lang.String getRelativeFilePath(java.lang.String oldPath,
java.lang.String newPath)
- This method can calculate the relative path between two pathes on a file system.
buildRelativePath
private static final java.lang.String buildRelativePath(java.lang.String toPath,
java.lang.String fromPath,
char separatorChar)