Java Path Normalize normalizePath(String path)

Here you can find the source of normalizePath(String path)

Description

normalize Path

License

Open Source License

Declaration

public static String normalizePath(String path) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String normalizePath(String path) {
        StringBuffer ret = new StringBuffer();
        char[] c = path.toCharArray();
        for (int i = 0; i < c.length; i++)
            if (c[i] == '\\')
                ret.append('/');
            else if (Character.isUpperCase(c[i]))
                ret.append(Character.toLowerCase(c[i]));
            else//from w  w  w  .  ja  va  2  s.  c  om
                ret.append(c[i]);
        return ret.toString();
    }
}

Related

  1. normalizePath(String path)
  2. normalizePath(String path)
  3. normalizePath(String path)
  4. normalizePath(String path)
  5. normalizePath(String path)
  6. normalizePath(String path)
  7. normalizePath(String path)
  8. normalizePath(String path)
  9. normalizePath(String path)