Here you can find the source of NormalizeName(String absolutePath)
public static String NormalizeName(String absolutePath)
//package com.java2s; //License from project: Open Source License public class Main { static String[] forbiddenSymbols = { "/", "\\", "?", "*", ":", "|", "\"", "<", ">" }; public static String NormalizeName(String absolutePath) { String name = absolutePath; for (String symbol : forbiddenSymbols) { if (!symbol.equals("\\")) name = name.replace(symbol, ""); }/*from www.java2 s . co m*/ return name; } }