org.jboss.modules
Class PathUtils
java.lang.Object
org.jboss.modules.PathUtils
public final class PathUtils
- extends Object
General helpful path utility methods.
- Author:
- David M. Lloyd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canonicalize
public static String canonicalize(String path)
- Canonicalize the given path. Removes all
.
and ..
segments from the path.
- Parameters:
path
- the relative or absolute possibly non-canonical path
- Returns:
- the canonical path
Copyright © 2011. All Rights Reserved.