de.uni_bremen.st.rcf.util
Class PathUtils

java.lang.Object
  extended by de.uni_bremen.st.rcf.util.PathUtils

public class PathUtils
extends Object


Constructor Summary
PathUtils()
           
 
Method Summary
static String normalizeBasepath(String basepath)
           
static String normalizePath(String path)
          Normalizes the path.
static String stripBasepath(String basepath, String toStrip)
          Strip the basepath from a path.
static String translatePath(String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtils

public PathUtils()
Method Detail

translatePath

public static String translatePath(String path)

normalizePath

public static String normalizePath(String path)
Normalizes the path. This will transform all slashes to forward slashes.


normalizeBasepath

public static String normalizeBasepath(String basepath)

stripBasepath

public static String stripBasepath(String basepath,
                                   String toStrip)
Strip the basepath from a path. Basepath and the following path seperator character will be removed from the beginning to toStip.

Parameters:
basepath -
toStrip - the path to strip
Returns:
the stripped path or toStrip, if it does not start with basepath


Copyright © 2011. All Rights Reserved.