org.apache.maven.doxia.site.decoration.inheritance
Class PathUtils

java.lang.Object
  extended by 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

Method Summary
static PathDescriptor convertPath(PathDescriptor oldPath, PathDescriptor newPath)
           
static 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.
static java.lang.String getRelativePath(PathDescriptor oldPathDescriptor, PathDescriptor newPathDescriptor)
           
static 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.



Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.