Here you can find the source of cleanPath(String s)
public static String cleanPath(String s)
//package com.java2s; //License from project: Apache License public class Main { public static String cleanPath(String s) { String retval = s.replace('\\', '_'); retval = retval.replace(':', '_'); retval = retval.replace('/', '_'); return retval; }/*from w ww .jav a 2s . c om*/ }