Class PathUtils
java.lang.Object
org.apache.maven.doxia.site.decoration.inheritance.PathUtils
Deprecated.
this only operates on deprecated classes, it is not used anymore.
Utilities that allow conversion of old and new pathes and URLs relative to each other.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final PathDescriptor
convertPath
(PathDescriptor oldPath, PathDescriptor newPath) Deprecated.convertPath.static final String
getRelativePath
(PathDescriptor oldPathDescriptor, PathDescriptor newPathDescriptor) Deprecated.getRelativePath.
-
Constructor Details
-
PathUtils
private PathUtils()Deprecated.Private constructor.
-
-
Method Details
-
convertPath
public static final PathDescriptor convertPath(PathDescriptor oldPath, PathDescriptor newPath) throws MalformedURLException Deprecated.convertPath.
- Parameters:
oldPath
- not nullnewPath
- not null- Returns:
- a PathDescriptor converted by the new path
- Throws:
MalformedURLException
- if any
-
getRelativePath
public static final String getRelativePath(PathDescriptor oldPathDescriptor, PathDescriptor newPathDescriptor) Deprecated.getRelativePath.
- Parameters:
oldPathDescriptor
- not nullnewPathDescriptor
- not null- Returns:
- a relative path depending if PathDescriptor is a file or a web url.
- See Also:
-