org.jboss.modules
Class PathUtils

java.lang.Object
  extended by org.jboss.modules.PathUtils

public final class PathUtils
extends Object

General helpful path utility methods.

Author:
David M. Lloyd

Method Summary
static String canonicalize(String path)
          Canonicalize the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.