org.sonar.api.utils
Class PathUtils

java.lang.Object
  extended by org.sonar.api.utils.PathUtils

public class PathUtils
extends Object

Since:
4.0

Method Summary
static String canonicalPath(File file)
          Get canonical path and replace file separators by forward slash.
static String sanitize(String path)
          Normalize path and replace file separators by forward slash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sanitize

public static String sanitize(@Nullable
                              String path)
Normalize path and replace file separators by forward slash


canonicalPath

public static String canonicalPath(@Nullable
                                   File file)
Get canonical path and replace file separators by forward slash. This method does not throw boring checked exception.



Copyright © 2009-2014 SonarSource. All Rights Reserved.