Here you can find the source of sanitizeFilename(String toClean)
public static String sanitizeFilename(String toClean)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w . jav a2 s.c om * makes the string a more friendly filesystem path for java. this includes turning backslashes into forward slashes. */ public static String sanitizeFilename(String toClean) { if (toClean == null) return toClean; // can't fix nothing. // _logger.debug("before='" + toClean + "'"); String toReturn = toClean.replace('\\', '/'); // future: any other cleanings we should do on the path? // _logger.debug("after='" + toReturn + "'"); return toReturn; } }