Here you can find the source of normalizePath(String path)
public static String normalizePath(String path)
//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(); } }