org.sonar.api.utils
Class PathUtils
java.lang.Object
org.sonar.api.utils.PathUtils
public class PathUtils
- extends Object
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.